Erwin
2011-Nov-15 19:01 UTC
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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2011-Nov-15 20:25 UTC
Re: strange routing issue : working on localhost not working on remote server ..
On 15 November 2011 19:01, Erwin <yves_dufour-ee4meeAH724@public.gmane.org> wrote:> 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.What does production.log show when that happens? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Erwin
2011-Nov-15 21:50 UTC
Re: strange routing issue : working on localhost not working on remote server ..
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 Nov 15, 9:25 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 15 November 2011 19:01, Erwin <yves_duf...-ee4meeAH724@public.gmane.org> wrote: > > > > > > > > > > > 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. > > What does production.log show when that happens? > > Colin-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2011-Nov-15 21:52 UTC
Re: Re: strange routing issue : working on localhost not working on remote server ..
On 15 November 2011 21:50, Erwin <yves_dufour-ee4meeAH724@public.gmane.org> 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> > > > On Nov 15, 9:25 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> On 15 November 2011 19:01, Erwin <yves_duf...-ee4meeAH724@public.gmane.org> wrote: >> >> >> >> >> >> >> >> >> >> > 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. >> >> What does production.log show when that happens? >> >> Colin > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- gplus.to/clanlaw -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.