I am running a RoR application (rails 2.3.8, ruby ββ1.8.7), the application works fine on my local machine. but in production, the logs show the following error:
ActionView::TemplateError (Missing template folder/_file_name.erb in view path app/views) on line #19 of app/views/layouts/main.rhtml: 19: <%= render :partial => "folder/file_name" -%>
the file name exists as folder/_file_name.html.erb , I tried to reproduce the problem in the working environment, but had no luck, for some reason the rails application asks for folder/_file_name.erb in some cases, and in other cases it searches for the correct file folder/_file_name.html.erb .
Can someone explain to me what is going on?
The same thing happens with .rhtml files, rails application.erb applications, while others get the correct .rhtml file
update:
<%= render :partial => "shared/meta_tags" -%> <%= render :partial => "shared/common_resources" -%> <%= render :partial => 'shared/ads/oas' -%>
Any pointers to this problem would be helpful, thanks in advance
ruby ruby-on-rails rendering actionview
wael34218
source share