Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # corrected routes file
- Rails.application.routes.draw do
- mount_at = Cheese::Engine.config.mount_at
- match mount_at => 'cheese/widgets#index'
- scope mount_at do
- resources :widgets, :only => [ :index, :show ],
- :controller => "cheese/widgets",
- :as => "cheese_widgets"
- end
- end
- # this produces:
- # cheese /cheese(.:format)
- # cheese_widgets GET /cheese/widgets(.:format)
- # cheese_widget GET /cheese/widgets/:id(.:format)
Add Comment
Please, Sign In to add comment