-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make it work for objects other than ActiveModel #7
Comments
You need to add an I'll patch it to make it optional. |
This will go out in the next release. Let me know within the next day or so if you still have problems with non-ActiveModel objects. It's possible that I missed a corner case somewhere. |
ok, thanks for the fast reply! |
The quickest way to test the patch to make sure it works for you is to replace the gem stanza in your Gemfile with: gem 'twitter_bootstrap_form_for',
:git => 'git://github.com/stouset/twitter_bootstrap_form_for.git' |
I verified with the gem generated from the repository, and it works for my use case. Thanks |
I've got another fix to roll into 1.0.2, so this will go out later tonight or tomorrow morning. |
Sorry, I completely forgot that this fix was pending a release. I've pushed out |
For example if I use the session object
<%= twitter_bootstrap_form_for(session, :url => sessions_path) do |f| %>
I get this error:
undefined method `model_name' for Rack::Session::Abstract::SessionHash:Class
The text was updated successfully, but these errors were encountered: