Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### THE PART I TRY TO UPDATE ####
- <td>
- <ul id="category_listing">
- <% @composition.categories.each do |c| %>
- <%= render :partial => 'categories', :locals => { :c => c } %>
- <% end %>
- </ul>
- </td>
- <td>
- <% form_remote_tag :url => {:action => 'add_category', :id => @composition.id} do %>
- <%= select_tag 'category_id', options_for_select(category_options) -%>
- <%= submit_tag 'Add this category'.t %>
- <% end %>
- </td>
- #### CATEGORIES PARTIAL ####
- <li id="cat_<%= c.id %>">
- <%= c.name %>
- <%= link_to_remote 'Remove this',
- :url => {
- :action => 'remove_category',
- :id => c.id,
- :composition_id => @composition.id },
- :update => 'compositions',
- :method => :post %>
- </li>
Add Comment
Please, Sign In to add comment