Comments (8)
@lurkermike in rails 4.1.0, FormBuilder#new no longer accepts a proc object.
UPDATE: This change now exists in master and version 2.1.0
from bootstrap_form.
Yep, this fixed the error. Thank you!
from bootstrap_form.
Just tried upgrading an app from Rails 4.0 to 4.1 and I was getting the same error for all the spots where bootstrap_form_for
was used. In my case, I simply had to update the bootstrap_form gem, which wasn't happening when I ran bundle update
because I was limiting the version range too much in my Gemfile: gem "bootstrap_form", "~> 2.0.1"
Upgrading bootstrap_form introduced some new error related to sprockets-rails:
/home/dennis/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/sprockets-rails-2.1.2/lib/sprockets/railtie.rb:77:in `block in <class:Railtie>': uninitialized constant Sprockets::Rails::VERSION (NameError)
Will have to investigate that now.
P.S. @potenza the URL you posted is outdated (404).
from bootstrap_form.
I've had similar errors since upgrading from 4.1.0rc2 to 4.1 - found out
it was because the sprockets_better_errors gem
(https://github.com/schneems/sprockets_better_errors) has been merged
into 4.1.0.
From RailsApps/rails_layout#20 :
"This is because sanity checks from the sprockets_better_errors gem have
been merged into Rails 4.1. The intent is to reveal asset pipeline
errors that you would see in production when you run the app in
development mode."
Hope this helps.
from bootstrap_form.
@dideler Thanks for the heads up. I just edited my comment.
Let me know if you continue to run into any issues with our gem...
from bootstrap_form.
I'm getting that problem with Rails 3.2.18, Ruby 2.0.0p481 on OS X 10.8.5. Any ideas?
from bootstrap_form.
Hi @jdickey what version of bootstrap_form are you using? We decided to only support rails 4+ with our latest release. Version 2.0.1 (https://github.com/bootstrap-ruby/rails-bootstrap-forms/tree/v2.0.1) was our last release with rails 3 support.
from bootstrap_form.
@potenza Ah, thank you.
from bootstrap_form.
Related Issues (20)
- Range control has wrong class HOT 5
- Release version 5.2.0 HOT 8
- Need to include ActiveRecord::Reflection for custom form class with 5.2.0 HOT 1
- Rename the default layout to "vertical" ? HOT 2
- Can't disable number_field HOT 3
- DEPRECATION WARNING: Calling `<<` to an ActiveModel::Errors message array in order to add an error is deprecated HOT 3
- [Rails 7.1] Association Validator Keyed by Association Name
- Can't edit classes on input elements. HOT 5
- Release new version (5.3.0) HOT 2
- new version 5.3.0 - undefined method `arity' for HOT 4
- V 5.3.1 - Using ruby's %w() array shortcut in bootstrap_form_for statement causes 'ActionView::Template::Error:' HOT 6
- Generate System Test Baseline via GitHub Actions
- Some Examples May Be Failing
- `collection_check_boxes` does not work with Rails 6.1 HOT 4
- Lazy load ActionText helpers HOT 10
- Overriding form tag's 'control_col' not working for f.check_box (layout: :horizontal)
- Need to use plain method for visibility with bootstrap_form in Phlex Component HOT 2
- render problem HOT 3
- Update Gemfiles?
- input appended to input HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap_form.