Topic: Controller url issue

I've worked with jsp, spring, php etc.
I've been new to RoR

I got the command:   rails generate controller controller_name  method1 method2

for eg.  rails generate controller pages home contact

this makes the url look like:

localhost:3000/pages/home
/pages/contact

Is it possible to define a url like:

localhost:3000/home
localhost:3000/contact

Re: Controller url issue

See Rails guides on Routes for more details and examples.