Heroku routing errors in Rails app -
on local machine, when authenticate @ http://subdomain.myapp.dev (using pow server), redirected index page.
when logging production domain http://subdomain.myapp.com (hosted on heroku), able authenticate; however, heroku not redirecting index page. after submitting necessary credentials, receive 'signed in successfully' notification remain on sign in page.
rake routes
, heroku run rake routes
return identical routing schemes. i've listed contents of routes.rb file below
example::application.routes.draw devise_scope :user authenticated :user root :to => 'admin/servers#index' end unauthenticated :user root :to => 'devise/sessions#new' end end resources :server_imports resources :servers devise_for :users activeadmin.routes(self) end
below logs after entering credentials signing in:
2013-10-12t01:59:32.110046+00:00 app[web.1]: started post "/users/sign_in" 2013-10-12t01:59:32.529842+00:00 app[web.1]: started "/"
and here first line heroku run rake routes
root / admin/servers#index
as mentioned above, still re-routed sign in page after successful authentication. confused why problem experienced on heroku , not on local machine
why not this:
def after_sign_in_path_for(resource) admin_servers_index_path end
Comments
Post a Comment