I'm building a comments section on my blog, and so far I have it working to the point where I can successfully submit comments and have them appear on my page.

However, there is always a blank comment on the page whether I have 10 comments or the database is empty.

*** views/artist/lyrics/show.html.erb *** <%= form_for(@lyric.comments.build, url: artist_album_lyric_comments_path(@artist, @album, @lyric)) do |f| %> <%= f.text_area :content %> <%= f.submit "comment" %> <% end %> <% if @lyric.comments.any? %> <% @lyric.comments.each do |comment| %> <%= comment.username %> <%= comment.content %> <% end %> <% else %> No one has commented. <% end %> *** /controllers/users/comments_controller.rb *** def create @comment = Comment.new(comment_params) @comment.user_id = current_user.id @comment.username = current_user.username @comment.lyric_id = Lyric.friendly.find(params[:lyric_id]).id if @comment.save redirect_to (:back) else redirect_to root_url end end

The Comment model is nested and I think that has something to do with it. It's Artist => Album => Lyric => Comment