Hi, Just wondering if its possible to set up an application to run on a base domain? If so, how? If you dont know what I mean so when I goto http://localhost:3000/ I dont get the rails information page? If you still dont get me (Im finding this hard to explain) then hope this structure helps: http://www.myapp.com/ <http://www.myapp.com/controller/> <--- Would be Front page of website http://www.myapp.com/edit/ <--- Go here to edit posts htpp://www.myapp.com/post/ <---- go here to make a new post etc.. Regards, Jon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060222/6db32ed8/attachment.html
have a look in config/routes.db this file controls the incoming requests, look through the comments and you should be fine, remember though that it''s first come first serve, by which I mean the first ''match'' made will be routed so keep an eye on the order of your routes hope this helps Chris -- Posted via http://www.ruby-forum.com/.
that was meant to be '' config/routes.rb '' NOT .db! oops, mistype -- Posted via http://www.ruby-forum.com/.
Cheers for the quick response. I''ll take a look now! Regards Jon On 22/02/06, Chris Cole <chris@firegoby.com> wrote:> > that was meant to be '' config/routes.rb '' NOT .db! oops, mistype > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060222/19a1df11/attachment.html
Jon Blower wrote:> If you dont know what I mean so when I goto http://localhost:3000/ I > dont get the rails information page? >If you''re just talking about showing a "home" page instead of the rails information page, there are instructions how to do that on that information page.... Basically just delete or replace the index.html page out of /public and/or set what controller to call in routes.rb. b