Coder Social home page Coder Social logo

Comments (8)

potenza avatar potenza commented on July 24, 2024

@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.

lurkermike avatar lurkermike commented on July 24, 2024

Yep, this fixed the error. Thank you!

from bootstrap_form.

dideler avatar dideler commented on July 24, 2024

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.

creativelycloudy avatar creativelycloudy commented on July 24, 2024

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.

potenza avatar potenza commented on July 24, 2024

@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.

jdickey avatar jdickey commented on July 24, 2024

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.

potenza avatar potenza commented on July 24, 2024

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.

jdickey avatar jdickey commented on July 24, 2024

@potenza Ah, thank you.

from bootstrap_form.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.