Well, after a while trying I found a way to do it right. The first time, I created just controller script/generate controller home and then created actions by editing the file app/controllers/home_controller like this: def action1 end def action2 end ... and for every action I created a file like this app/views/home/action.html.erb and it didn't work (that's the point where you were suggesting routing)
but the only thing I needed was to destroy all the work done and use the command script/generate controller home action1 action2... and voi'la myIP:3000/home works now :) BUT! What I'm trying to figure out now is addressing inside of the app. I'm trying to set up a background for the page but the relative path starting from the route of the app doesn't work and unfortunately the absolute path doesn't work either. So where is the root of the relative path? Jan 2010/7/24 Jan Kadera <[email protected]> > "If you're not getting the results you expect, run `rake routes` to see > what's actually configured." > > sk...@pivnik:~/www/skurt$ rake routes > (in /home/skurt/www/skurt) > /:controller/:action/:id > /:controller/:action/:id.:format > > Now I see I really don't want to mess with it :( > > Jan > > > > 2010/7/24 Jan Kadera <[email protected]> > > "You use routing to match URLs to the content you want to serve." >> Are you telling me, that the default routing setting do not work like >> this: >> my ip: 1.2.3.4 >> my port: 3000 >> controller name: c >> action name: a >> this implies the address http://1.2.3.4:3000/c/a.html >> ??? >> >> I'm asking, because I believe it work like that which means, when I start >> to change it, I'll mess the whole app up. >> >> Jan. >> >> >> >> 2010/7/21 Hassan Schroeder <[email protected]> >> >> On Tue, Jul 20, 2010 at 3:21 PM, Jan Kadera <[email protected]> >>> wrote: >>> >>> > Isn't there any more peaceful way to do it without declaring war to >>> half of >>> > the application by changing routing? >>> >>> What *are* you talking about? >>> >>> You use routing to match URLs to the content you want to serve. >>> >>> If you're not getting the results you expect, run `rake routes` to see >>> what's actually configured. >>> >>> -- >>> Hassan Schroeder ------------------------ [email protected] >>> twitter: @hassan >>> >>> -- >>> 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.

