Hi
I am having trouble with a submit code for a form. I don’t get errors
or anything. it just goes to the redirect and it dosen’t show anything
def create
@comment = ForumComment.new(params[:post])
@comment.user_id = current_user.id
if @comment.save
redirect_to :controller => ‘forums’, :action => ‘index’
end
redirect_to :action => ‘create’
end
end
the create.rhtml just has this code for error reporting(to help me fix
it)
<%= error_messages_for ‘forum_comment’ %>
is there anything wrong with the create method syntax?