Closed ianseyer closed 9 years ago
@ianseyer Thanks for the clear explanation. I'd like to tell you two points:
rake routes
outputs only named routes, so you must define the named route.# before
get "/" do
end
get "/foo" do
end
# after
get :index do
end
get :foo do
end
Padrino.mount('SnapStories::Auth', :app_file => Padrino.root('auth/app.rb')).to('/auth')
Padrino.mount('SnapStories::App', :app_file => Padrino.root('app/app.rb')).to('/')
See: Upgrading Padrino from 0.11.X to 0.12.0 Guide's Reorder Mounter Apps section.
Thank you!
I have a three apps loaded under one main app, in a project called SnapStories:
Reports
,Organization
, andAuth
. They were created & mounted via the padrino generators.However,
rake routes
yields nothing: no errors or routes. The only routes that actually get served are those in app/app.rb. Nothing from my controllers in my subapps.Code here: https://github.com/ianseyer/snapstories-public