I have situation like this: <p><label for="task_category_id">Assign:</label> <select name="category[category_id]" id="category_category_id"> <option value="0">Choose</option> <option value="1">category 1</option> <option value="2">category 2</option> </select> </p> So when I choose option ''Choose'' with value 0 and I don''t have a category with that id i get error.... Making a new category in table with title = ''No category'' doesn''t feel right How can I handle that kind of problem? -- 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-/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 -~----------~----~----~----~------~----~------~--~---