我在Heroku上运行Rails应用程序时遇到问题。
我从Rails教程Michael Hartl写了这个应用程序。当我加载页面时,我得到:
我们很抱歉,但出了点问题。
基本信息日志:
ActionView::Template::Error :Error (PG::Error :Error: syntax error at or near ")"
count_column FROM "microposts"
我在views / pages / home.html.erb中遇到了麻烦。我的其他页面没有问题..也许在部分布局或页面,。我不知道。点击这里这是my Application
在此应用程序中,作为根路径的页面主页成功显示但如果我登录,则页面主页显示heroku消息
我们很抱歉,但出了点问题
视图/页/ 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 logs -t
ActionView::Template::Error :Error (PG::Error :Error: relation "users" doest not exist
LINE 1: SELECT "users".* FROM "users" WHERE "users"."auth_token"=...
之前谢谢