I believe the standard Rails error message when a template is missing is "Missing <action_name>.erb", as that's the last template name Rails looks for - however, it also looks for <action_name>.html.erb when resolving the view. So the error message may be making the problem look less mundane than it actually is - have you double checked your template spelling etc.?
Mat On Sun, Feb 7, 2010 at 06:28, Nir <[email protected]> wrote: > Hi, > > I am getting a "missing template" error on one of my controllers. > Apparently, rails will look for <template>.erb file instead of > <template>.html.erb > > Strangely, this behavior happens on one controller only. It happens > only on heroku and does not happen locally. > > Currently, as a workaround, I've duplicated all my template files > (e.g. index, show, edit, etc.) so that now I have both copies for this > controller. Obviously, I would not like to maintain these duplicates. > > Has anyone ran into this kind of problem before? > > Nir > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
