Search code examples
ruby-on-rails-3twitter-bootstrappassengerlessbootswatch

Cannot call method 'charAt' of undefined - only on server


I have a rails application which is running well in local (OsX, WEBrick).

I've cloned the repo on a server (Ubuntu 10.04, Apache, Passenger), setted up passenger, but now when i try to connect to every page i get

Less::ParseError in Pages#home

Showing /var/www/MYAPP/app/views/layouts/application.html.erb where line #5 raised:

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)

the content of bootstrap.css.less is:

@import "twitter/bootstrap/bootstrap";

line 5 of application.html.erb is:

<%= stylesheet_link_tag    "application" %>

ruby 1.8.7 on both machines


Solution

  • solved upgrading to ruby 1.9.3