How would I add a user name along with the form input? The user name is defined in application.rb as @current_user
Below works 100% w/ adding the comment body/time but I wasnt sure how to add the user part
albums_controller.rb
def comment @albums = Albums.find(params[:id]) @albumscomment = Albums.find(params[:id]).comments.create(params[:comment]) if request.post? and @albumscomment.save flash[:notice] = 'comment submission succeeded!' redirect_to :action => 'show', :permalink => @albums.permalink end end