You can't have an if statement embedded in a method like this. Not to mention you are missing the => operator. Try this:
<%= text_field_tag :post_header, '', :name => 'post[header]', :value => @post.header ? @post.header : '' %>
You can't have an if statement embedded in a method like this. Not to mention you are missing the => operator. Try this:
<%= text_field_tag :post_header, '', :name => 'post[header]', :value => @post.header ? @post.header : '' %>