Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Where should this go? Trying to format output from changes (ActiveRecord::Dirty)
- def table_form(changes)
- table = ''
- changes.each do |f|
- table << "<tr>
- <td>#{f[0]}</td>
- <td>#{f[1][0]}</td>
- <td>#{f[1]][1]}</td>
- </tr>
- "
- end
- return table
- end
Add Comment
Please, Sign In to add comment