I am running refinerycms 1.0.8 and rails 3.0.10. I have the following piece of code in app/views/pages/show.html.erb
<div id="startpageheader">
<%= raw @page.content_for(:startpageheader) %>
</div>
<section id='body_content'>
<%=raw @page.content_for(:body) %>
</section>
If I run this local in development mode, I get the following (desired) output:
<section id='page'>
<div id="startpageheader">
<p>...</p>
</div>
<section id='body_content'>
<p>...</p>
</section>
</section>
But as soon as I start this in production mode, I get the following:
<section id='page'>
<section id='body_content' class='no_body_content_right'>
<h1 id='body_content_title'>Home</h1>
<section id='body_content_left'><div class='inner'><p>...</p></div></section>
<section id='startpageheader'><div class='inner'><p>...</p></div></section>
</section>
</section>
So, the page parts are shown, but in a wrong view. I tried to hunt this down in the production logs, but I ended up nowhere. Does anybody have any idea what's going wrong here?
I found the problem, and, of course, it was my own fault. For whatever reason I managed it somehow to delete the first Page (Home) from the pages-menu. So, back then, I created a new one, which wasn't the actual homepage but just a normal page.
When I modified the show view show.html.erb
for the pages, the changes were shown, of course. But in production, the original homepage wasn't deleted and therefore changes in show.html.erb
didn't show up, since the first view responds to home.html.erb
.
Thanks everybody who tried to help me and sorry for the stupid mistake.