Colin Law wrote: > It does not matter if you have a variable called varname (don't use > VARNAME, upper case implies a constant in ruby). params[:varname] > checks whether the params hash contains an entry for the key varname > and is not affected by any variable called varname.
Okay, sorry. I was worried about being english-readable and I became ruby-unreadable. I -think- he is saying that he has: params[:varname] ... And params[:varname] may exist for some other purpose but not the purpose he needs, so he wants to make sure it's the params[:varname] he wants. Does that make sense? Yeah, it doesn't make sense to me either. That's why I suggested only passing parameters with unique names. -- 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 -~----------~----~----~----~------~----~------~--~---

