RailsCasts Pro episodes are now free!

Learn more or hide this

macksolo's Profile

GitHub User: macksolo

Comments by

Avatar

Thanks for the tip ... I was noticing the same problem ... Every article I displayed on a single page had its own

html
 <html><body>

  </body></html>

wrapper ...

Avatar

Awesome as usual! Thx. Have you tried deploying your app in production mode under RC4 ? Everything worked exactly the same for me under development but when I switched to production I got this error with web brick:

Processing by ProjectsController#index as HTML

Rendered projects/index.html.erb within layouts/application (24.4ms)
Compiled app/assets/stylesheets/application.css (1ms) (pid 45323)
...

Compiled app/assets/javascripts/projects.js.coffee (116ms) (pid 45323)
Completed 500 Internal Server Error in 377ms

and finally:

ActionView::Template::Error (uninitialized constant JSON::ParserError
(in /opt/nginx/apps/todo/app/assets/javascripts/application.js)):
3:
4: Todo
5: <%= stylesheet_link_tag "application" %>
6: <%= javascript_include_tag "application" %>
7: <%= csrf_meta_tags %>
8:
9:
app/views/layouts/application.html.erb:6:in _app_views_layouts_application_html_erb__2079688217135001494_17202399760'
app/controllers/projects_controller.rb:7:in
index'