search for: _forms

Displaying 2 results from an estimated 2 matches for "_forms".

Did you mean: forms
2006 Nov 28
2
Twice the same code, but only once it seems to work
...gt; <%= start_form_tag :action => ''create'' %> <%= render :partial => ''form'' %> <%= submit_tag "Create" %> <%= end_form_tag %> <%= link_to ''Back'', :action => ''list'' %> in both _forms (resp. Dir and admin) ------------------------------- <%= error_messages_for ''company'' %> <!--[form:company]--> <p><label for="company_name">Name</label> <%= text_field ''company'', ''name'' %></p&gt...
2006 Apr 05
1
select in *.rhtml
...ntroller < ApplicationController def new @item = Item.new @category = Category.find_all end ... class Item < ActiveRecord::Base belongs_to :category end class Category < ActiveRecord::Base has_many :items end I found some news postings that said the select tag in my _forms.rhtml was ''object'', ''attribute'', and ''list_items'', but I''ve tried several combinations and can''t get this right. This is my ~/app/views/items/_form.rhtml <p><label for="item_category_name">Category<...