Template is missing - Ruby on Rails
When using scaffolding, if you override a default function such as list, you'll get the message that says something like:
Template is missing
To correct this create the appropriate list.rhtml file in correspoding views directory.
3 Comments:
What if you get an error that indicates that your controller template is missing:
Template is missing
Missing layout script/../config/../app/views/layouts/widgets.rhtml
Then how do you correct it?
so you create a "widgets.rhtml"
Template is missing
Missing template ./script/../config/../app/views/audits/update.rhtml
In my model, when I attempt to use
validates_presence_of, my error message tells me that the UPDATE template is missing. Adding "wupdate.rhtml" does not correct the problem since what I want is the update code in my controller to fire. When I comment out the validates_presence_of code in my model, all works fine.
Post a Comment
<< Home