On Jul 5, 2013, at 7:03 PM, Rodrigo Lueneberg wrote:

> Sorry, I just come from .net and I am used to Request.Querystring[] 
> which is able to fetch any URL parameter on post. The Request object, in 
> this case, takes care storing the URL parameter values. One other idea 
> you just gave me is to create an input field which would obtain the 
> value from the URL. I mean it would alter the form_tag helper to include 
> the id and it would be available during post. But thanks, your feedback 
> was very helpful and I am going to continue studying to better 
> understand rails architecture.

When you read about the form_for helper versus the form_tag helper, you will 
see that the item ID will be a part of the parameters when you receive the form 
contents at your controller for the update method, without any additional items 
being required.

Walter

> 
> -- 
> 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 unsubscribe from this group and stop receiving emails from it, send an 
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/6a8e4f4368f63f5d90888ac6099f5591%40ruby-forum.com.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/90D9CFB0-2F78-4EE3-A960-83B6B9CDF317%40wdstudio.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to