Strange routing issue : working on localhost not working on remote server

it’s the first time I see it …

I have the following in my routes.rb

namespace :users do
resource :dashboard, :only => [:show ]
end

and users_dashboard_path => “/users/dashboard” where I only print
the logged in current_user name ( using Devise gem auth…)

on localhost after sign in , I can go to
http://localhost:3000/users/dashboard

but once deployed , after sign in,
http://www.yoodish.com/users/dashboard
raises : The page you were looking for doesn’t exist.
You may have mistyped the address or the page may have moved.

where could be the difference ? I am tired tonight !

thanks for your feedback

On 15 November 2011 19:01, Erwin [email protected] wrote:

on localhost after sign in , I can go to http://localhost:3000/users/dashboard

but once deployed , after sign in, http://www.yoodish.com/users/dashboard
raises : The page you were looking for doesn’t exist.
You may have mistyped the address or the page may have moved.

What does production.log show when that happens?

Colin

Got it thanks !
Started GET “/users/dashboard” for 2.13.101.56 at 2011-11-15 21:40:36
+0000
ActionController::RoutingError (uninitialized constant
Users::DashboardsController):

I had to define dashboard inside Users as per the routes …
(namespace :users !)

On 15 November 2011 21:50, Erwin [email protected] wrote:

Got it thanks !
Started GET “/users/dashboard” for 2.13.101.56 at 2011-11-15 21:40:36
+0000
ActionController::RoutingError (uninitialized constant
Users::DashboardsController):

I had to define dashboard inside Users as per the routes …
(namespace :users !)

But it was ok in development mode?

Colin

What does production.log show when that happens?

Colin


You received this message because you are subscribed to the Google G. “Ruby
on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


gplus.to/clanlaw

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs