Displaying 1 result from an estimated 1 matches for "admin_cupcake_url".
2007 Dec 10
11
map.namespace, rake routes yields no POST URLs
...min.resources :cupcakes
end
rake routes
cupcakes GET /cupcakes
formatted_cupcakes GET /cupcakes.:format
POST /cupcakes
POST /cupcakes.:format
That said, what the heck goes here:
form_for(:cupcake, @cupcake, xxx_url) # ???
Calling create_admin_cupcake_url yields...
undefined local variable or method ''create_admin_cupcake_url''
Additionally, calling form_for(@cupcake) yields...
undefined method ''cupcake_path''
Finally, I''ve also tried...
form_for(:cupcake, @cupcake, admin_cupcake_url, :method => :put...