> unless params[:location][:id] || params[:location][:id].empty?
Or's short-circuit on the first true in the 'if' case, but are you sure it works as a full inverse in the 'unless' case? If it's: unless (condA || condB), which makes sense to me, you're out of luck. If condA is false, it WILL go after condB... Rewrite it as an 'if' -- 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 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 -~----------~----~----~----~------~----~------~--~---