Hi, In my layout/application.rhtml there is a form for finding/cheching airline-tickets online. The value in the form is filled in based on the destination.name <% form_for @destination do |f| %> <%= f.text_field :name %> <% end %> But when i go to a page that is not a destination i get an error message because there is no (params[:id] of destination. How can i resolve this problem..with conditions ? or is my template-scructure not oke? remco -- 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 -~----------~----~----~----~------~----~------~--~---