Ok, I tried as you suggested with:
<%= select_tag(:per_page, options_for_select(%w{10 20 30 40 50},
selected = session[:per_page]), :onchange => "session[:per_page] =
this.value") %> Lines per page
I can't seem to get the :onchange to set a new value for
session[:per_page]. I checked :onchange with an alert(this.value) and
it did what I expected.
Can you proved a sample of what I should be doing in :onchange
Thanks.
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.