Ruby on Rails
Friday, September 13, 2013
On Thursday, September 12, 2013 10:06:57 PM UTC+1, Derek Nassler wrote:
... show the "show" action is supposed to return the "post" information (i.e. the blog post into the posts table) and I know that it exists in the table but I get an error indicating that:
Your show action isn't being called because the method is private (and actions have to be public methods). Rails is skipping straight to the template. Post.find will always return something or raise an exception - it won't return nil
Fred
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8c261ea1-566c-466b-a98a-d07c758af571%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment