<% if @item.note_id.nil? %> None <%= link_to "+", { :controller => "notes", :action =>"new", :id => @item.id } %> <% else %> <%=h @item.note.more_notes %> <%= link_to "Edit", {:controller => "notes", :action => "edit", :id => @item.note_id} %> <%= link_to "X", { controller => "notes", :action => "destroy", :id => @item.note_id }, :confirm => "Are you sure you want to delete this note?" %> <% end %>