I have static pages that I am trying to do as a team, aboutUs, terms of service, etc.
I am trying to get one controller to process static pages, but I lack some know-how.
Here is what I did:
In routes.rb, I added the following to the end:
match "/:action" => "pages"
Then I created a controller named pages_controller.rb
It is currently empty. What I need is to recognize requests such as / pages / team or pages / about_us, and redirect to the desired static page. How can i do this?
Thank!
source
share