I am implementing an html template for a Contact us page in my app. I am wondering if I can somehow pass a link for that page, which will have no behaviour, without having to generate a new controller which seems to be not possible. I tried to place the template in the public folder and then pass a link to /public/contact, being the template contact.html.erb, but rails returns a uninitialised controller routing error.
here is what I have set in the routes.rb file
get 'public/contact'
and this is the application.html.erb that carries my link to that
</div>
<ul>
<li><a href="http://localhost:3000">HOME</a></li>
<li><a href="http://localhost:3000/info/news">NEWS</a></li>
<li><a href="http://localhost:3000/info/faq">FAQ</a></li>
<li><a href="http://localhost:3000/public/contact">CONTACT US</a></li>
</ul>
Notice that we have also the path info/news and info/faq
I had generated a controller info to handle all these static pages. I would just like to know if this a good practice or should I use other drier way to implement this?