I have a strange problem with my layout file. I think it may be due to
nested partials, but removing the deepest nested partial call does not
clear the problem.
I have an application wide layout (application.html.erb) that works as
expected - loads images, javascript, css etc for my application.
So http://localhost:3000/patients → fine
http://localhost:3000/patients/new → fine
http://localhost:3000/operations → fine
http://localhost:3000/operations/new → problems
The problem is that rails is suddenly confused about paths and
interprets:
<link href=“css/menu.css” rel=“stylesheet” type=“text/css” />
As routing calls. (from the stderror output):
Processing OperationsController#css to css (for 127.0.0.1 at
2009-05-01 06:07:26) [GET]
Parameters: {“id”=>“menu”}
ActionController::UnknownAction (No action responded to css. Actions:
access_denied, check_group, check_roles, create, destroy, edit, index,
new, role_requirements, role_requirements=, show, toggle, and update):
Does anyone have an idea of where to look or have you seen this error
before?
Nothing dynamic is changing in the layout file to my knowledge. This
error occurs if I call that page directly, or if I get there through
the application (operations belong to patients, patients have many
operations).