Skip to content

Instantly share code, notes, and snippets.

@Choongkyu
Last active August 29, 2015 14:07
Show Gist options
  • Save Choongkyu/f335df4cf0c320b3ae36 to your computer and use it in GitHub Desktop.
Save Choongkyu/f335df4cf0c320b3ae36 to your computer and use it in GitHub Desktop.
urlgeneration error
NameError in Articles#show
Showing C:/Users/Guy/code/blog/app/views/articles/show.html.erb where line #31 raised:
undefined local variable or method `article' for #<#<Class:0x3c05088>:0x3b69058>
Extracted source (around line #31):
28
29
30
31
32
33
34
<%= comment.commenter %><br>
<%= comment.created_at %><br>
<%= comment.text %><br>
<%= link_to 'Delete', article_comment_path(article,comment), method: :delete %>
</div>
<% end %>
Rails.root: C:/Users/Guy/code/blog
Application Trace | Framework Trace | Full Trace
app/views/articles/show.html.erb:31:in `block in _app_views_articles_show_html_erb__590193120_31181976'
app/views/articles/show.html.erb:26:in `_app_views_articles_show_html_erb__590193120_31181976'
Request
Parameters:
{"id"=>"5"}
Toggle session dump
Toggle env dump
Response
Headers:
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment