Skip to content

Instantly share code, notes, and snippets.

@renaehodgkins
Created November 15, 2011 18:54
Show Gist options
  • Save renaehodgkins/1367962 to your computer and use it in GitHub Desktop.
Save renaehodgkins/1367962 to your computer and use it in GitHub Desktop.
halp
NoMethodError in Admin/posts#show
Showing app/views/shared/_post.html.erb where line #24 raised:
Attempt to call private method
Extracted source (around line #24):
21:
22: <div class='body'>
23: <%= link_to image_tag(post.image(:large), :class => "post_image_large"), post.image(:large) if post.image? %>
24: <%= render_body(coderay(post)) %>
25: </div>
26:
27: <% if current_user && !@preview %>
Trace of template inclusion: app/views/admin/posts/show.html.erb
RAILS_ROOT: /Users/renaebair/workspace/intridea/newsite
Application Trace | Framework Trace | Full Trace
/Users/renaebair/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-2.3.11/lib/active_record/attribute_methods.rb:236:in `method_missing'
/Users/renaebair/workspace/intridea/newsite/app/helpers/application_helper.rb:54:in `coderay'
/Users/renaebair/workspace/intridea/newsite/app/views/shared/_post.html.erb:24:in `_run_erb_app47views47shared47_post46html46erb_locals_object_post'
/Users/renaebair/workspace/intridea/newsite/app/views/admin/posts/show.html.erb:2:in `_run_erb_app47views47admin47posts47show46html46erb'
Request
Parameters:
{"id"=>"dry-magic-methods"}
Show session dump
Response
Headers:
{"Content-Type"=>"text/html",
"Cache-Control"=>"no-cache"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment