Hello, I'm still really new to Ruby on Rails and I just need some clarification... So if I define a param in a link_to in my view like so:
<%= link_to match['name'], :controller => 'compare', :action => 'viewinfo', :param1 => match['name'], :param2 => match['number'] %>
How do I call param1 and param2 once in the controller? I'm trying to do something like this:
if param1 != nil && param2 != nil
However, just saying 'param1' and 'param2' doesn't work because it is an undefined local variable... How can I use them as such?
Thank you!! - Jeff