<% form_for(@post) do |f| %> does not work!

That error is a Rails 1.2.x error. If you had upgraded it probably
didn't upgrade well. Also, make sure your environments.rb says it's
2.0.x