Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Merb::Router.prepare do
- resources :foos
- end
- class Foos < Application
- def show(foo)
- # here you have access to the foo resource (either the raw DM object or a wrapper)
- end
- end
- # request /foo/1 routes to Foos#show(Foo.get(1)) or Foos#show(resource_wrapper)
Add Comment
Please, Sign In to add comment