[Rails] Re: Re: Re: Re: How to add button to pass drop down menu selection to controller
Hassan Schroeder wrote in post #1069841:
> On Mon, Jul 23, 2012 at 8:53 AM, lalalalala pqpqpqpqpq
> <lists@ruby-forum.com> wrote:
>
>> I have to make this app for my internship, could you just guide me how
>> to make the submit button? I'm guessing I'll have to make a form which
>> passes the selected option to an action in my controller?
>
> Yes. Unless you use JavaScript, which I'll assume isn't an option at
> this point :-)
>
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
> http://about.me/hassanschroeder
> twitter: @hassan
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?
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home