form_for(:name, @resource) deprecation on Rails 3 #245

justinfrench opened this Issue Apr 19, 2010 · 1 comment

1 participant


DEPRECATION WARNING: Using form_for(:name, @resource) is deprecated. Please use form_for(@resource, :as => :name) instead. (called from semantic_form_for at /Users/justin/dev/formtastic/lib/formtastic.rb:1727)


Fixed in 82f6c8d, closing.

@julian7 julian7 pushed a commit that referenced this issue Jun 25, 2011
@justinfrench Fixes deprecation warnings with form_for(:name, @resource) in rails3 (#…

* replaced lots of unnecessary `semantic_form_for(:post,` with `semantic_form_for(@new_post...)`
* added rails3? and rails2? helper methods to spec_helper
* for the test where it did matter, I added a check for Rails 2 or 3 so we test the right code under both version
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment