Ruby on rails Heroku错误消息:“请参阅”;我们';很抱歉,出了点问题。”;

Ruby on rails Heroku错误消息:“请参阅”;我们';很抱歉,出了点问题。”;,ruby-on-rails,postgresql,heroku,Ruby On Rails,Postgresql,Heroku,我在Heroku上运行Rails应用程序时遇到问题 我根据Rails教程编写的应用程序。当我加载页面时,我得到: 很抱歉,出了点问题 基本信息日志: ActionView::Template::Error :Error (PG::Error :Error: syntax error at or near ")" count_column FROM "microposts" 我在views/pages/home.html.erb中遇到的问题,。我的其他网页没问题。。可能在局部布局或页面中,。我

我在Heroku上运行Rails应用程序时遇到问题

我根据Rails教程编写的应用程序。当我加载页面时,我得到:

很抱歉,出了点问题

基本信息日志:

ActionView::Template::Error :Error (PG::Error :Error: syntax error at or near ")"
count_column FROM "microposts" 
我在views/pages/home.html.erb中遇到的问题,。我的其他网页没问题。。可能在局部布局或页面中,。我不知道。点击这里,这是

在此应用程序中,成功显示作为根路径的主页,但如果我登录,主页将显示一条消息

很抱歉,出了点问题

视图/页面/home.html.erb

<% if signed_in? %>`
<table class="profile" summary="For signed-in users">
<tr>
<td class="sidebar round">
<h1 class="micropost">What's up?</h1>
<%= render 'shared/micropost_form' %>
<%= render 'shared/feed' %>
</td>
<td class="main">
<%= render 'shared/user_info' %>
</td>
</tr>
</table>
<% else %>
<h3>Welcome to rails App by example</h3>
<p>Find out your friend, happening, connect to people or some the activities, organization and more</p>
<%= link_to "Sign up now!", 'signup', :class => "signup_button round" %>
<% end %>

感谢您之前

您似乎没有在heroku上运行迁移,请尝试:

heroku run rake db:migrate

有用的

看起来Postgres和您的SQL有问题。在终端上运行:heroku logs-t,并发布错误您应该尝试在本地重现该问题。你在开发中运行Postgres吗?在开发中我使用SQLite
heroku run rake db:migrate