I am working through the ruby on rails tutorial. I have all of the test passing and deployed to git hub.
When I deployed to Heroku and opened the online application it tells me something went wrong.
I looked at the log files and this is what was written:
ActionView::Template::Error (compile error
/app/app/views/pages/home.html.erb:10: Invalid char \024' in expression):
<%= render "shared/feed" %>
</td>
<td class="sidebar round">
<%= render "shared/user_info" %>
</tr>
</table>
<开发者_运维百科% else %>
app/views/pages/home.html.erb:23:in `compile'
any ideas how to fix this error?
this may sound silly but after you deploy the app did ran heroku rake db:migrate also make sure you close that if statement with <% end %>
make sure your code has no "special" encoded characters (ex: from copy and paste...)...
Apparently I had some "null" values instead of null in my database which was causing the problem. Once I cleared those out everything worked perfectly.
精彩评论