On 27 February 2012 16:01, amvis [email protected] wrote:
Just i used the select_tag in the rails3 for the country selection option.
But when i click on that ,i didn’t give any option. here is the code which
<%= select_tag( "<option
, :class => “span2” ) %>
Yes, you have got it all wrong I am afraid. Have a look at the html
it is generating and you will see the problem. Have a look at the
docs for select_tag to see where you are going wrong. Whenever
something is not working it is worth looking at the html.
Are you sure you should not be using f.select rather than select_tag?
You should use form_for whenever appropriate rather than form_tag.
“Ruby on Rails: Talk” group.
To view this discussion on the web visit
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
For more options, visit this group at