mowsen-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2008-Jul-29 10:01 UTC
Value check of returned symbol
Hej there how do I check the returned symbols of my create action for a specific value? As i can easily use all the validates_* functions, I wonder how I can check for example that my :name == "ruby" (apparently doesn''t work because it''s a symbol)?? Or is that not done in the model but through a .rjs helper? Thanks alot, mowsen --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---