http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-routes.htm
http://guides.rubyonrails.org/getting_started.html see section 4.2 Although its for 2.3, 2.1 looks to be similar. On Jul 20, 5:21 pm, Jan Kadera <[email protected]> wrote: > I've got rails 2.1 unfortunately. > Isn't there any more peaceful way to do it without declaring war to half of > the application by changing routing? > > btw, my app is available on the address tinyurl.com/skurt, please feel free > to check it out. > I have made there two controllers: home and Rolldance (rolldance is from > some kind of turorial) > home have bunch of actions, but there is view only for action wow > rolldance have actions both with views index and o_nas > What I'm trying to do is simply access those pages and I'm totally > unsuccessful :( > Jan Kadera > > 2010/7/21 thereddestruby <[email protected]> > > > You mean setting your routes so that you can tell Rails where your > > homepage is at when you preview using localhost? > > > In rails 3, do something like this: > > > # Home Page Route > > root :to => "site#home" > > > # Site Routes > > match '/', :to => "site#home" > > > So when you go tohttp://localhost:3000, rails will route to your > > homepage. > > > On Jul 20, 3:03 pm, Jan Kadera <[email protected]> wrote: > > > Hey guys, > > > it'll be kinda silly question, but I was working for two years on my > > > bachelor's thesis using RoR...but I have never found out, how to do that > > > when I type in the browser the address and port, there will be a homepage > > > shown...is there some easy way? > > > > Thanks in advance > > > Jan Kadera > > > -- > > 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 [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<rubyonrails-talk%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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 [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.

