Forum: Ruby on Rails Nonmodel fields - select_tag

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
rglara (Guest)
on 2005-11-24 05:32
(Received via mailing list)
Hi, I'm a ROR newbie and I'm trying to use a nonmodel field. Precisely,
I'm
trying to use the select_tag. Here's what I'm doing:

in my view:
<%=select_tag(:place_sel, options_for_select(@places,
@params[:place_sel]))%>

in the controller, I try to get the selected item by doing this:

@tmp = @params[:place_sel]

and get nothing. What am I doing wrong?

Regards,
Rodrigo Lara
This topic is locked and can not be replied to.