I can do

```
<p>Welcome <%= @current_user.login %></p>
    <% @comments.each do |comments| %>
    <h3><%= comments.body %></h3>
    <% end %>

```

but not

```
@cuser = @current_user
@user = User.find(params[:user_id]) 
@user.comments.create(:user_id => @user.id, :commenter => @cuser.login,  :body => params[:comment][:body])
respond_to do |format| 
     format.js 
     format.html { redirect_to(@user, :notice => 'Comment was successfully created.') }

```

Which gives the error "undefined method `login' for nil:NilClass"

If I can use @current\_user in one instance why not the other