Hi I am trying to build a simple app where I''m trying to do pretty what scaffold does. My question is when I am using ''form_for'' how do I return the id while editing the application like its done in the form_tag for example <h1>Editing book</h1> <% form_tag :action => ''update'', :id => @book do %> <%= render :partial => ''form'' %> <%= submit_tag ''Edit'' %> <% end %> <%= link_to ''Show'', :action => ''show'', :id => @book %> | <%= link_to ''Back'', :action => ''list'' %> Here the :id=>@book sends the id back so that i can find it in my controller before i update it similarly how can i send something back with the form_tag without using the hidden tags. Attachments: http://www.ruby-forum.com/attachment/3503/edit.rhtml -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---