When the user clicks the 'picks1' link I want $r to be equal to 1. when 
the user clicks 'picks2' i wont $r to be equal to 2. At this moment with 
the code i have presented earlier i constantly get $r equal to 2 whether 
i click the second link or not. What is happening is that the code is 
being read over and actually changing $r instead of just doing so when 
the user clicks the links with the onclick. I need to figure a way to 
change the $r so that it will change based on the link the user 
clicks... i already had it set up with a model and it worked but i soon 
realized that the amount of data entries was not ideal.

-- 
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 https://groups.google.com/groups/opt_out.


Reply via email to