search for: is_subitem

Displaying 1 result from an estimated 1 matches for "is_subitem".

2009 Mar 08
0
undefined variable or method in form_tag url
Hello list, In ref. to my previous post: http://www.ruby-forum.com/topic/180765 I am getting "undefined local variable or method `item_path'' for #<ActionView::Base:0xb7065650>", when I try to create a new item. Following is the code in my new.rhtml <h1>New <%= @is_subitem ? ''Subitem'' : ''Item'' %></h1> <% form_tag :item, :url => item_path do %> <%= render :partial => ''item_form'' %> <%= submit_tag "Create" %> <% end %> The new and create actions are as follows:...