Nil.to_sym Problem

HI everyone, require some help! cannot figure out this error and how
to fix it!

Showing user/index.html.erb where line #59 raised:

You have a nil object when you didn’t expect it!
The error occurred while evaluating nil.to_sym

Extracted source (around line #59):

56: <% end %>
57:
58:
59:

Blog: <%= link_to “(manage)”, posts_path(@blog) %></
div>
60:
<%= render :partial => “user/blog” %>

61:
62:

On Apr 18, 12:45 am, Guru_101011 [email protected] wrote:

HI everyone, require some help! cannot figure out this error and how
to fix it!

Showing user/index.html.erb where line #59 raised:

At a guess it would seem that @blog is nil

Fred

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs