Displaying 1 result from an estimated 1 matches for "equipmentcontrol".
2009 Jul 01
1
form_for resources with :singular specified
...e point here somewhere so I promise
I won''t be offended if you tell me I''m being daft.
My application rents equipment ... not equipments. So I have the
following:
map.resources :equipment, :singular => :equipment_instance
class Equipment < ActiveRecord::Base
class EquipmentController < ApplicationController
The problem comes in my _form.haml partial that is used by new.haml
and edit.haml:
- form_for @equipment do |f|
This gives me an error saying "Only get and post requests are allowed.
(ActionController::MethodNotAllowed)"
I tried:
- form_for @equipment,...