On Fri, Oct 9, 2009 at 12:34 AM, Sijo kg <rails-mailing-l...@andreas-s.net> wrote: > >> "if �...@sub_categories == nil". > > Hi > Check @sub_categories.blank? > I'm pretty sure that #blank? is supposed to be used to check if a parameter is present or, if present, is blank. I think the method you're looking for here is #empty?
unless @sub_categories.empty? do something, :here => :now end --wpd --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---