routes.rb and static html files in public/

Paul Harv wrote:

Hi,

I've read posts on approaches to handling static files, but my question is a little different.

I am mixing and matching dynamic and static pages for an "employee" section of a website.

So I have apps/controller/employee_controller.rb and associated view stuff.

But I also have public/employee/*.html

But of course if I trying this:

http://localhost:3000/employee/main.html

I get: Action Controller: Exception caught Unknown action No action responded to main.html

How would I use routes.rb to by-pass EmployeeController when the request ends in .html, so that Rails justs looks in public/employee/ for such requests?

Or do I really need different names so the controller and public/employee/ don't clash?

Yes I think you already have the answer.