Frederick Cheung wrote in post #980057:
>
> You haven't shown anywhere where you're trying to set it - if you want
> it to be set based on a parameter, you're going to have to set @grp to
> params[:something]
>
Hm, i forgot the on_click in my code:
<%= link_to image_tag("oranje.png", :mouseover =>
image_path("oranje2.png"), :onclick => (:grp => 'o')), zwemmers_path %>
So when i click the image i want to redirect to zwemmers_path and i want
to change the value of @grp to 'o'. I don't know how to implement params
tho.
--
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 [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.