Giter Club home page Giter Club logo

Comments (12)

seyhunak avatar seyhunak commented on August 28, 2024

What version of Ruby and Rails are you running?

from twitter-bootstrap-rails.

rhaamo avatar rhaamo commented on August 28, 2024

Ruby 1.9.2-p180 or 1.9.3-p0 (same with the two) and rails 3.1.0

from twitter-bootstrap-rails.

seyhunak avatar seyhunak commented on August 28, 2024

Your versions meet the requirements. Looks like Less cant compile asset files for you.
I just tested on my stack. (Ruby 1.9.3, Rails 3.2 and also with Rails 3.1) everything works.

from twitter-bootstrap-rails.

rhaamo avatar rhaamo commented on August 28, 2024

I've found less/less.js#592 which seems related to my issue but i've no ideas how to test something...

My less and less-rails gems in my bundle are 2.0.9 and 2.1.5.

from twitter-bootstrap-rails.

seyhunak avatar seyhunak commented on August 28, 2024

Looks like problem related to Less.js, also gem updated to less-rails 2.1.5. I hope it fixes.

from twitter-bootstrap-rails.

qwertoyo avatar qwertoyo commented on August 28, 2024

I have the same issue:
Cannot call method 'charAt' of undefined
(in /usr/lib/ruby/gems/1.8/gems/twitter-bootstrap-rails-2.0.2/vendor/assets/stylesheets/twitter/bootstrap.css.less)

but it happens ONLY on my linux test server, running apache and passenger

in local (webrick, OsX) i haven't any problem

ruby 1.8.7
less 2.0.9
less-rails 2.1.5

from twitter-bootstrap-rails.

yagmurdursun avatar yagmurdursun commented on August 28, 2024

I have the same problem:
Cannot call method 'charAt' of undefined
(in /usr/lib/ruby/1.9.1/gems/twitter-bootstrap-rails-2.0.2/vendor/assets/stylesheets/twitter/bootstrap.css.less)

in localhost I don't have any problem but at development I get this error.

ruby 1.9.3
less 2.0.9
less-rails 2.1.6
rails 3.1.0

I tried some solutions but I couldn't solve my problem. what should I do to solve the error?

from twitter-bootstrap-rails.

qwertoyo avatar qwertoyo commented on August 28, 2024

i solved upgrading to 1.9.3 (rvm).

from twitter-bootstrap-rails.

yagmurdursun avatar yagmurdursun commented on August 28, 2024

and I called "rails g bootstrap:install" and solved my problem

from twitter-bootstrap-rails.

shyam-habarakada avatar shyam-habarakada commented on August 28, 2024

I ran into a similar error while trying to use this gem on a clean rails 3.2 app. I was using the latest ruby 1.9.3, via RVM. Searching the web for a solution just kept sending me round and round. It is most likely an issue with LESS, but I could not find a solution that worked. Finally I gave up and used this other, simpler (less features) 'bootstrap-sass' gem by @thomas-mcdonald. It just worked, and presumably because it uses SASS instead of LESS

from twitter-bootstrap-rails.

amaierhofer avatar amaierhofer commented on August 28, 2024

Issue poped up again after upgrading from 2.2.4 to 2.2.5

from twitter-bootstrap-rails.

chrisconley avatar chrisconley commented on August 28, 2024

I fixed this issue with:

gem 'less-rails', git: 'git://github.com/metaskills/less-rails.git'

from twitter-bootstrap-rails.

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.