I want to create static web pages in my App – T&Cs, About, Privacy etc… I could just create blank pages and put them in the public folder and put ‘href’ links to them. Is this considered best practice? or should I use rails g controller for each of them? What’s the difference…
Share
Oftentimes I will make a
sitecontroller that has actions for each of the public pages, assuming there isn’t going to be a ton of content on the public side. If there was more, I would look into some kind of CMS. Anyway, create asitecontroller, and then create routes and templates for each of the pages you need. That way you’ll be able to use a layout, and use Rails helpers if you need them.