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.
@issue_type is created in the controller and I assigned the first value
in the collection. Of course, this is the value I only can pass.
To retrieve the value in the combo I've tried with onchange, but... I
couldn't make it work
Thanks in advance
--
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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment