# Create post method error

**URL:** <https://www.ruby-forum.com/t/create-post-method-error/118788>\
**Category:** Rails\
**Created:** [October 30, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/create-post-method-error/118788 "2007-10-30T23:05:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoeRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@JoeRails](https://www.ruby-forum.com/u/JoeRails)\
**Post date:** [October 30, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/create-post-method-error/118788/1 "2007-10-30T23:05:11Z")

</div>

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?
