you can do this as:

```ruby
if @post.save
  # go back to form
else
  # go to new post
end
```