I have a peculiarity with resources_controller which I have not been
able to solve - and I hope that someone here has a better
understanding of Routing and ResourcesController <:)
In a project of mine, my routes.rb has
map.with_options :controller => 'homes' do |m|
m.hjt 'hjerteforeningen', :action => 'show', :id => 1
end
When I do (in console - but it acts the same in a browser)
> app.get "/hjerteforeningen"
My log says:
Processing HomesController#show (for 127.0.0.1 at 2010-04-22 12:37:17)
[GET]
Parameters: {"id"=>1}
Ardes::ResourcesController::ResourceMismatch (resources_controller
can't match the route to the resource specification
path: /hjerteforeningen
specification: enclosing: [*], resource :homes
I'm obviously doing something very wrong - I just can't point my
finger at it!
Somebody, please point your finger ;)
Cheers,
Walther
--
You received this message because you are subscribed to the Google Groups "resources_controller" group.
To post to this group, send email to
resources_...@googlegroups.com.
To unsubscribe from this group, send email to
resources_contro...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/resources_controller?hl=en.