I have an instance variable @grp:
(app\controllers\zwemmers_controller.rb)
class ZwemmersController < ApplicationController
...
def initialize
@grp='or1r2r3r4gggrp'
end
attr_accessor :grp
...
end
When i click an image, i reload the main index page and try to change
the value of the variable:
(app\views\layouts\zwemmers.html.erb)
...
<%= link_to image_tag("oranje.png", :mouseover =>
image_path("oranje2.png"), :grp => 'o'), zwemmers_path %>
...
The value doesn't change. any ideas?
--
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.