I am cleaning up someone else’s code and I am new to to rails. And
majority of the developers seem to be using form_for and not form_tag. I
found it useful as it directly handles ActiveRecord objects… So for my
new code I am using the same.
Frederick C. wrote:
On 9 Mar 2009, at 15:48, Carlos S. wrote:
<% end %>
<%= link_to ‘Add Sub-Item to this Element’, :action
=> :add_subitem, :id
=> @item %>
edit_topic_item_path returns the path to the edit page, which isn’t
where you want to send your updates to
If I were you I’d just use form_for which hangles all that sort of
stuff for you.
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.