I have a folder called home that I’m using to organize my top level view files. How do I set the route so that when they appear the url doesn’t contain the /home/ section.
Example: Currently the file about_us displays http://somesite.com/home/about_us where I want it to display http://somesite.com/about_us
Thanks
Rails 2.x way of doing this is
this will map
somesite.com/somepageto thesomepageaction on theHomeControllerIf you want to use a single action for everything, you may go for
and then in your
HomeControllerand of course, with this setup, you can name your views in
app/views/homeafter the actual page names