On Mon, Jul 23, 2012 at 11:28 AM, lalalalala pqpqpqpqpq
<[email protected]> wrote:

> How would I pass the id of an option from the view to the controller? As
> in, what command in the view? And how would I access this id that is
> passed, in the controller?

You put your select in a form and submit it. That's what forms do --
send name/value pairs to the web server.

Hence my suggestion that you make some effort to understand the
basics before trying to create a web app  :-)

If nothing else, you can look at a scaffolded form as an example to
see how it looks as markup (`view source`) and compare to what's
being sent to the server, which will be in your Rails log.

HTH,
-- 
Hassan Schroeder ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to