sachin238-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Dec-03 13:57 UTC
routing is not working
hi all , i want thats if i type http//localhost:3000 in my browser. it will redirect to controller account and action will be login i write this code in routes.rb file map.connect ''*anything'',:controller=>''account'',:action=>''login'' it showing again the same startup page to confirm the server is running i also tried map.connect '' '',:controller=>''account'',:action=>''login'' but didn''t succeeded can any body help me out thanks sachin --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi,> it showing again the same startup page to confirm the server is > running > >have you tried doing as the routes.rb file says? # You can have the root of your site routed by hooking up '''' # -- just remember to delete public/index.html. remobe the public/index.html file and you''ll probably have it running regards, javier ramirez --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
sachin238-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Dec-03 14:19 UTC
Re: routing is not working
thanks man its working thanks On Dec 3, 7:12 pm, javier ramirez <jrami...-7iWCczGtl7hBDgjK7y7TUQ@public.gmane.org> wrote:> Hi,> it showing again the same startup page to confirm the server is > > running > > have you tried doing as the routes.rb file says? > > # You can have the root of your site routed by hooking up '''' > # -- just remember to delete public/index.html. > > remobe the public/index.html file and you''ll probably have it running > > regards, > > javier ramirez--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---