slametz
slametz

Reputation: 1

Heroku error message: "We're sorry, but something went wrong."

I have a problem running a Rails app on Heroku.

I made the app from the Rails tutorial Michael Hartl wrote. When I load the page I get:

We're sorry, but something went wrong.

Basic information logs:

ActionView::Template::Error :Error (PG::Error :Error: syntax error at or near ")"
count_column FROM "microposts" 

my trouble in views/pages/home.html.erb,. my others pages no problem.. maybe in partial layout or page ,. I don't known. click here this's my Application

in this app, page home as root path is successfully appears but if I sign in, page home appears heroku message

We're sorry, but something went wrong

views/pages/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 %>

I am Running

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"=...

Thanks before

Upvotes: 0

Views: 774

Answers (1)

Said Kaldybaev
Said Kaldybaev

Reputation: 10002

seems you didn't run migration on heroku, try:

heroku run rake db:migrate

useful link

Upvotes: 2

Related Questions