# Template structure oke?

**URL:** <https://www.ruby-forum.com/t/template-structure-oke/137783>\
**Category:** Rails\
**Created:** [May 16, 2008, 10:25am UTC](https://www.ruby-forum.com/t/template-structure-oke/137783 "2008-05-16T10:25:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![remco123](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/779978/32.png) [@remco123](https://www.ruby-forum.com/u/remco123)\
**Post date:** [May 16, 2008, 10:25am UTC](https://www.ruby-forum.com/t/template-structure-oke/137783/1 "2008-05-16T10:25:50Z")

</div>

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
