On 3 September 2010 11:35, Alfredo Bonilla <li...@ruby-forum.com> wrote:
> Hi,
>
> I have a select in my form:
>
> <%= select @issue_type, "name", @issue_types.collect {|p| [p.name,
> p.id]} %>
>
> What I need to do is execute a method passing the value selected in the
> combo. I've tried lot of things, but I couldn't.

Where are you trying to execute the method?  In the browser or in the
server?  If in the browser then you will have to use javascript (in
which case it is not really a Rails question), if in the server then
put the select in a form and the selected value will be passed in
params when the form is submitted.

Colin

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to