Hi i configured custom routes but i got the following errors
Error Number 1:
You have a nil object when you didn’t expect it!
The error occurred while evaluating nil.to_sym
17:
18:
19:
20:
21:
22:
sure?’, :method => :delete %>
23:
The thing is that quipment is defined. Here is the source code:
<% for quipment in @equipments %>
Now if I remove the line 20, 21, 22 from the file i got error number 2
Error number 2:
undefined local variable or method `new_equipment_path’ for
#ActionView::Base:0x2aaaae5c3bf8
Here is the route for equipments
map.resources :equipment,
:singular=>:equipment_instance,
:collection =>{
:add_equipment => :get,
:index => :get
}
if i remove the :singular => xxx line the problem is solved but the new
methods give me errors
Thank you very much for the help