I know partial update in rails is good, but for my latest project, I need to disable it temporarily. Is there any way for me to do this in Rails 4?
I have tried to put ActiveRecord::Base.partial_updates = false in my environment.rb like what being suggested here, but it returns me a bunch of errors:
UPDATE (ERROR MESSAGE)
C:/Ruby200/lib/ruby/gems/2.0.0/gems/activerecord-4.2.3/lib/active_record/dynamic_matchers.rb:26:in `method_missing': undefined method `partia
iveRecord::Base:Class (NoMethodError)
from C:/Users/ryzal_000/Sites/dotforge/config/environment.rb:7:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `block in require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `require'
from C:/Users/ryzal_000/Sites/dotforge/config.ru:3:in `block in <main>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from C:/Users/ryzal_000/Sites/dotforge/config.ru:in `new'
from C:/Users/ryzal_000/Sites/dotforge/config.ru:in `<main>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/server.rb:61:in `app'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/server.rb:139:in `log_to_stdout'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/server.rb:78:in `start'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:80:in `block in server'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:75:in `tap'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:75:in `server'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.2.3/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
From rails 4.1 partial_updates is removed you can check it here http://guides.rubyonrails.org/4_1_release_notes.html
Related
I'm working on a application in Ruby on Rails, and I changed my version of Rails and Rake. rails server does not work anymore:
~/sample_app/config.ru:4:in `block in <main>': uninitialized constant SampleApp (NameError)
from /var/lib/gems/1.9.1/gems/rack-1.2.8/lib/rack/builder.rb:46:in `instance_eval'
from /var/lib/gems/1.9.1/gems/rack-1.2.8/lib/rack/builder.rb:46:in `initialize'
from /home/sara/Documents/M1/s8/web avancé/projet/sample_app/config.ru:1:in `new'
from /home/sara/Documents/M1/s8/web avancé/projet/sample_app/config.ru:1:in `<main>'
from /var/lib/gems/1.9.1/gems/rack-1.2.8/lib/rack/builder.rb:35:in `eval'
from /var/lib/gems/1.9.1/gems/rack-1.2.8/lib/rack/builder.rb:35:in `parse_file'
from /var/lib/gems/1.9.1/gems/rack-1.2.8/lib/rack/server.rb:162:in `app'
from /var/lib/gems/1.9.1/gems/rack-1.2.8/lib/rack/server.rb:253:in `wrapped_app'
from /var/lib/gems/1.9.1/gems/rack-1.2.8/lib/rack/server.rb:204:in `start'
from /var/lib/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands/server.rb:65:in `start'
from /var/lib/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands.rb:30:in `block in <top (required)>'
from /var/lib/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands.rb:27:in `tap'
from /var/lib/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands.rb:27:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Make sure you run bundle again to update to the newer versions of rails and rake.
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configuration.rb:85:in `method_missing': undefined method `assets' for #<Rails::Engine::Configuration:0x9d6a6d8> (NoMethodError)
from /usr/local/lib/ruby/gems/1.9.1/gems/font-awesome-sass-4.2.1/lib/font_awesome/sass/rails/engine.rb:10:in `block in <class:Engine>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /var/www/device/config/environment.rb:5:in `<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /var/www/device/config.ru:3:in `block in <main>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /var/www/device/config.ru:in `new'
from /var/www/device/config.ru:in `<main>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
getting this error when I use rails s. then after I update the rails using rake rails:update
it shows 'wrap-parameter' error.
Version 4.2.1 of font-awesome-sass has a bug I've found and reported here:
https://github.com/FortAwesome/font-awesome-sass/issues/58
Change your gem version to 4.2.0
That works for me.
I tried upgrading from Rails 3.0.23 to 3.2.13 and now I have an error stopping the server from starting that looks like this:
/Users/hamiltonchapman/Projects/project-static/lib/markdown_handler.rb:3:in `<top (required)>': uninitialized constant ActionView::Template::Handler (NameError)
from /Users/hamiltonchapman/Projects/project-static/config/environment.rb:9:in `<top (required)>'
from /Users/hamiltonchapman/Projects/project-static/config.ru:5:in `require'
from /Users/hamiltonchapman/Projects/project-static/config.ru:5:in `block in <main>'
from /Users/hamiltonchapman/.rvm/gems/ruby-2.1.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /Users/hamiltonchapman/.rvm/gems/ruby-2.1.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /Users/hamiltonchapman/Projects/project-static/config.ru:in `new'
from /Users/hamiltonchapman/Projects/project-static/config.ru:in `<main>'
from /Users/hamiltonchapman/.rvm/gems/ruby-2.1.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /Users/hamiltonchapman/.rvm/gems/ruby-2.1.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /Users/hamiltonchapman/.rvm/gems/ruby-2.1.1/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /Users/hamiltonchapman/.rvm/gems/ruby-2.1.1/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'
from /Users/hamiltonchapman/.rvm/gems/ruby-2.1.1/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /Users/hamiltonchapman/.rvm/gems/ruby-2.1.1/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /Users/hamiltonchapman/.rvm/gems/ruby-2.1.1/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'
from /Users/hamiltonchapman/.rvm/gems/ruby-2.1.1/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/hamiltonchapman/.rvm/gems/ruby-2.1.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
from /Users/hamiltonchapman/.rvm/gems/ruby-2.1.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:9:in `require'
from script/rails:9:in `<main>'
The code that is causing this looks like:
require 'kramdown'
class MarkdownHandler < ActionView::Template::Handler
def self.call(template)
new.render(template, nil)
end
def render(template, local_assigns)
%(Kramdown::Document.new(
ERB.new(#{template.source.inspect}).result(binding)
).to_html.html_safe)
end
end
ActionView::Template.register_template_handler :emd, MarkdownHandler
ActionView::Template.register_template_handler :md, MarkdownHandler
However, if I just remove the inheritance then the server starts fine and all of the markdown files render as expected.
Any ideas as to what's going wrong?
Using the rails_upgrade plugin I successfully upgraded a 2.3 app to 3.0.6. My goal is to upgrade that 2.3 app to 3.2.11. Using the same process I'm able to get pretty far but I'm stuck on this one Active Support error. Any help would be appreciated -
/Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/activesupport-3.2.11/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method': undefined method `normalize_parameters' for class `ActionController::Request' (NameError)
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/activesupport-3.2.11/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method_chain'
from /Users/TravisKs/Sites/rabbitsferritsandgerbils.com/config/initializers/patch_for_1.9.2.rb:37:in `<class:Request>'
from /Users/TravisKs/Sites/rabbitsferritsandgerbils.com/config/initializers/patch_for_1.9.2.rb:31:in `<module:ActionController>'
from /Users/TravisKs/Sites/rabbitsferritsandgerbils.com/config/initializers/patch_for_1.9.2.rb:30:in `<top (required)>'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `block in load'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/railties-3.2.11/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/railties-3.2.11/lib/rails/engine.rb:587:in `each'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/railties-3.2.11/lib/rails/engine.rb:587:in `block in <class:Engine>'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `run'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/railties-3.2.11/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `each'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/railties-3.2.11/lib/rails/application.rb:136:in `initialize!'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/TravisKs/Sites/rabbitsferritsandgerbils.com/config/environment.rb:5:in `<top (required)>'
from /Users/TravisKs/Sites/rabbitsferritsandgerbils.com/config.ru:3:in `require'
from /Users/TravisKs/Sites/rabbitsferritsandgerbils.com/config.ru:3:in `block in <main>'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /Users/TravisKs/Sites/rabbitsferritsandgerbils.com/config.ru:in `new'
from /Users/TravisKs/Sites/rabbitsferritsandgerbils.com/config.ru:in `<main>'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/railties-3.2.11/lib/rails/commands/server.rb:46:in `app'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/railties-3.2.11/lib/rails/commands/server.rb:70:in `start'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/railties-3.2.11/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/railties-3.2.11/lib/rails/commands.rb:50:in `tap'
from /Users/TravisKs/.rvm/gems/ruby-1.9.3-p392#rabbitsferritsandgerbils.com/gems/railties-3.2.11/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Removing rabbitsferritsandgerbils.com/config/initializers/patch_for_1.9.2.rb seems to solve the problem for me. I did have to switch over to ruby 1.9.3.
After I did a bundle update, I get this error when i try to run rails s:
(The only thing I added was a bcrypt-ruby gem, but I dont think that has anything to with this...)
/Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/railtie/configuration.rb:85:in `method_missing': undefined method `less' for #<Rails::Application::Configuration:0x007fc33b079468> (NoMethodError)
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/twitter-bootstrap-rails-2.1.6/lib/twitter/bootstrap/rails/engine.rb:15:in `block in <class:Engine>'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/fettass/Documents/RailsApps/epyhrepus/config/environment.rb:5:in `<top (required)>'
from /Users/fettass/Documents/RailsApps/epyhrepus/config.ru:4:in `require'
from /Users/fettass/Documents/RailsApps/epyhrepus/config.ru:4:in `block in <main>'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /Users/fettass/Documents/RailsApps/epyhrepus/config.ru:1:in `new'
from /Users/fettass/Documents/RailsApps/epyhrepus/config.ru:1:in `<main>'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands/server.rb:46:in `app'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands/server.rb:70:in `start'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands.rb:50:in `tap'
from /Users/fettass/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
How do I resolve this issue?
It looks like you need to add the less-rails gem to your Gemfile:
gem "less-rails", "~> 2.2.6"