On 9 April 2016 at 23:57, David Williams <[email protected]> wrote: > _post.html.erb > > <%= @post.user.username.capitalize %>
As always it is best to paste the complete error message and tell us which line it refers to. If it is the line above that is saying undefined method 'user' for nil:NilClass then that means @post is nil. Colin -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuSyPjRq%2B8h7yKZ6w8QVz47WnbN2izoS3hOQ_KHZ%2BUXrA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

