Displaying 1 result from an estimated 1 matches for "createproducttypes".
2006 Aug 08
0
Error is: Couldn''t find Producttype without an ID
...ch do |producttype| %>
<option value="<%= producttype.id %>">
<%= producttype.producttype_name %>
</option>
<% end %>
</select>
</p>
Error is: Couldn''t find Producttype without an ID
Tables:
class CreateProducttypes < ActiveRecord::Migration
def self.up
create_table :producttypes do |t|
t.column :name, :string
t.column :created_at, :datetime
t.column :updated_on, :datetime
end
end
def self.down
drop_table :producttypes
end
End
class CreateCategories < Active...