AR
2007-Sep-27 14:26 UTC
Quick and Simple: How do I get rid of the subdir for my railsapp? (Making it root dir)
Ok, I created my rails application called "word". It consists of: controllers/application.rb (empty, whatever the default is) controllers/word.rb (my project) views/index.rhtml (my view) If I go to localhost:3000, I see the "welcome to rails" page. If I go to localhost:3000/word/, I get my application. How do I make my application the root by itself, without the /word/ at the end? I think this is a fairly straightforward issue where I''m overlooking something, but it is causing me a lot of problems when deploying the application on a web server (same problem, larger scale). Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Isak Hansen
2007-Sep-27 14:47 UTC
Re: Quick and Simple: How do I get rid of the subdir for my railsapp? (Making it root dir)
On 9/27/07, AR <reed.adam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Ok, I created my rails application called "word". It consists of: > > controllers/application.rb (empty, whatever the default is) > controllers/word.rb (my project) > > views/index.rhtml (my view) > > If I go to localhost:3000, I see the "welcome to rails" page. > If I go to localhost:3000/word/, I get my application. > > How do I make my application the root by itself, without the /word/ at > the end? > > I think this is a fairly straightforward issue where I''m overlooking > something, but it is causing me a lot of problems when deploying the > application on a web server (same problem, larger scale). >Did you read that "welcome to rails" page? Last paragraph should tell you how to do this. HTH, Isak> Thanks! > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
AR
2007-Sep-27 14:47 UTC
Re: Quick and Simple: How do I get rid of the subdir for my railsapp? (Making it root dir)
You know it''s funny. I''ve been searching for over a day, and come up with nothing. I post this question and 20 minutes later here we are: http://wiki.rubyonrails.com/rails/pages/HowtoConfigureTheDefaultPageForYourRailsApp On Sep 27, 9:26 am, AR <reed.a...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Ok, I created my rails application called "word". It consists of: > > controllers/application.rb (empty, whatever the default is) > controllers/word.rb (my project) > > views/index.rhtml (my view) > > If I go to localhost:3000, I see the "welcome to rails" page. > If I go to localhost:3000/word/, I get my application. > > How do I make my application the root by itself, without the /word/ at > the end? > > I think this is a fairly straightforward issue where I''m overlooking > something, but it is causing me a lot of problems when deploying the > application on a web server (same problem, larger scale). > > Thanks!--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
AR
2007-Sep-27 14:54 UTC
Re: Quick and Simple: How do I get rid of the subdir for my railsapp? (Making it root dir)
The page I got only said:
Getting started
Here''s how to get rolling:
1.
Create your databases and edit config/database.yml
Rails needs to know your login and password.
2.
Use script/generate to create your models and controllers
To see all available options, run it without parameters.
3.
Set up a default route and remove or rename this file
Routes are setup in config/routes.rb.
Which didn''t sound obvious at the time, but that''s mostly
because I''m
new to rails (could you tell?).
On Sep 27, 9:47 am, "Isak Hansen"
<isak.han...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> On 9/27/07, AR <reed.a...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
>
>
>
>
>
> > Ok, I created my rails application called "word". It
consists of:
>
> > controllers/application.rb (empty, whatever the default is)
> > controllers/word.rb (my project)
>
> > views/index.rhtml (my view)
>
> > If I go to localhost:3000, I see the "welcome to rails"
page.
> > If I go to localhost:3000/word/, I get my application.
>
> > How do I make my application the root by itself, without the /word/ at
> > the end?
>
> > I think this is a fairly straightforward issue where I''m
overlooking
> > something, but it is causing me a lot of problems when deploying the
> > application on a web server (same problem, larger scale).
>
> Did you read that "welcome to rails" page? Last paragraph should
tell
> you how to do this.
>
> HTH,
> Isak
>
> > Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Chris Hall
2007-Sep-27 14:58 UTC
Re: Quick and Simple: How do I get rid of the subdir for my railsapp? (Making it root dir)
Routes. It''s a big part of Rails. It''s more than just setting the default page for your app. basic routes: http://manuals.rubyonrails.com/read/chapter/65 rest: http://www.softiesonrails.com/2007/3/28/rest-101-part-1-understanding-resources You might also want to spend the $ and purchase the agile web dev with rails book from The Pragmatic Programmers http://www.pragmaticprogrammer.com/ On 9/27/07, AR <reed.adam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > You know it''s funny. I''ve been searching for over a day, and come up > with nothing. I post this question and 20 minutes later here we are: > > http://wiki.rubyonrails.com/rails/pages/HowtoConfigureTheDefaultPageForYourRailsApp > > On Sep 27, 9:26 am, AR <reed.a...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Ok, I created my rails application called "word". It consists of: > > > > controllers/application.rb (empty, whatever the default is) > > controllers/word.rb (my project) > > > > views/index.rhtml (my view) > > > > If I go to localhost:3000, I see the "welcome to rails" page. > > If I go to localhost:3000/word/, I get my application. > > > > How do I make my application the root by itself, without the /word/ at > > the end? > > > > I think this is a fairly straightforward issue where I''m overlooking > > something, but it is causing me a lot of problems when deploying the > > application on a web server (same problem, larger scale). > > > > Thanks! > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---