Use optional parameter to set column class
- Fixes the extremely long class name on the post versions view - Can now use one value instead of having to set th and td - Added missing column classes on all tables
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<%= link_to_user news_update.creator %>
|
||||
<% end %>
|
||||
<% t.column :message %>
|
||||
<% t.column do |news_update| %>
|
||||
<% t.column column: "control" do |news_update| %>
|
||||
<%= link_to "Edit", edit_news_update_path(news_update) %>
|
||||
| <%= link_to "Delete", news_update_path(news_update), :method => :delete %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user