Rails应用程序在生产模式下有违规视图

时间:2012-07-28 16:36:30

标签: ruby-on-rails heroku

我是Heroku的新手并且最近部署了我的rails应用程序 - 它似乎在大多数情况下运行良好;我可以访问我的索引,我可以编辑帖子,我可以创建新帖子,但有一个视图无法加载。我花了一些时间试图弄清楚问题是什么,但无法让它发挥作用。我会在这里发布有问题的视图,如果有人能给我一些建议,为什么这个视图不会在页面中呈现,我将非常感激。

作为参考,我收到了Rails 500错误。它在开发模式下运行良好,只是在生产中我才收到此错误。

提前感谢任何有帮助的人。

<head>
<%= javascript_include_tag :all %> 
</head>
<div id ="header">
  <div id = 'logo_head'>A | K</div>
</div>
<body id="mainbody">

<div id="content_show_head" class="mobile_column">
 <h1>
   <%= @post.title %>
 </h1>


<div id ='slider_outter_wrap'>
<div id ='img_wrap'><%= image_tag(@post.ftimg, :id => 'ftimg') %></div>
<div id ='slider'>
 <div id='slide_inner_wrap'>
  <%= image_tag(@post.ftimg, :class => 'slidepic') %>
  <%= image_tag(@image_gallery.img1, :class => 'slidepic') %>
  <%= image_tag(@image_gallery.img2, :class => 'slidepic') %>
  <%= image_tag(@image_gallery.img3, :class => 'slidepic') %>
  <%= image_tag(@image_gallery.img4, :class => 'slidepic') %>
  <%= image_tag(@image_gallery.img5, :class => 'slidepic') %>
  <%= image_tag(@image_gallery.img6, :class => 'slidepic') %>
  <%= image_tag(@image_gallery.img7, :class => 'slidepic') %>
</div>
</div>
</div>
</div>

<div id="content_show_body" class="mobile_column" data="default_scroll">
  <span class = "reading_area">
  <h2 class='reading_button'>Project:</h2>
  <p><%= @str = @post.subhead.html_safe %></p>
  </span>
  <span class = "reading_area">
  <h2 class='reading_button'>Description:</h2>
  <p><%= @str = @post.description.html_safe %></p>
  </span>
  <span class = "reading_area">
  <h2 class='reading_button'>Process:</h2>
  <p><%= @str = @post.process.html_safe %></p>
</span>
  <span class = "reading_area">
  <h2 class='reading_button'>Made With:</h2>
  <span id="createdwith"><%= @str = @post.createdwith.html_safe %>
  </span>
  </span>
</div>
<div id = "reading_mask"></div>
</body>

0 个答案:

没有答案