Middleman 3.0.4 doesn't build - ruby-on-rails

I'm trying to make a build for a client's project and I'm getting too many errors.
bundle exec middleman build
/Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-sprockets-3.1.2/lib/middleman-sprockets/sass_function_hack.rb:18:in `image_url': undefined local variable or method `sprockets_context' for #<Sass::Script::Functions::EvaluationContext:0x007fd75de5efe8> (NameError)
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/script/funcall.rb:112:in `_perform'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/script/node.rb:40:in `perform'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/perform.rb:298:in `visit_prop'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/base.rb:37:in `visit'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/perform.rb:100:in `visit'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/base.rb:53:in `map'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/base.rb:53:in `visit_children'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/perform.rb:109:in `block in visit_children'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/perform.rb:121:in `with_environment'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/perform.rb:108:in `visit_children'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/base.rb:37:in `block in visit'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/perform.rb:320:in `visit_rule'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/base.rb:37:in `visit'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/perform.rb:100:in `visit'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/base.rb:53:in `map'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/base.rb:53:in `visit_children'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/perform.rb:109:in `block in visit_children'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/perform.rb:121:in `with_environment'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/perform.rb:108:in `visit_children'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/base.rb:37:in `block in visit'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/perform.rb:128:in `visit_root'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/base.rb:37:in `visit'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/perform.rb:100:in `visit'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/visitors/perform.rb:7:in `visit'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/tree/root_node.rb:20:in `render'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/engine.rb:315:in `_render'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/sass-3.2.9/lib/sass/engine.rb:262:in `render'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/renderers/sass.rb:67:in `evaluate'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/tilt-1.3.7/lib/tilt/template.rb:77:in `render'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/core_extensions/rendering.rb:264:in `render_individual_file'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/core_extensions/rendering.rb:148:in `render_template'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/sitemap/resource.rb:128:in `block in render'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.13/lib/active_support/notifications.rb:125:in `instrument'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/util.rb:60:in `instrument'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/application.rb:222:in `instrument'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/sitemap/resource.rb:14:in `instrument'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/sitemap/resource.rb:114:in `render'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/core_extensions/request.rb:255:in `process_request'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/core_extensions/request.rb:204:in `block in call!'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/core_extensions/request.rb:203:in `catch'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/core_extensions/request.rb:203:in `call!'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/core_extensions/request.rb:188:in `call'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/builder.rb:134:in `call'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in `block in call'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `each'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `call'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/builder.rb:134:in `call'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/rack-test-0.6.2/lib/rack/mock_session.rb:30:in `request'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/rack-test-0.6.2/lib/rack/test.rb:230:in `process_request'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/rack-test-0.6.2/lib/rack/test.rb:57:in `get'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/cli/build.rb:259:in `block in execute!'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/cli/build.rb:256:in `each'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/cli/build.rb:256:in `execute!'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/cli/build.rb:198:in `invoke!'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.15.4/lib/thor/actions.rb:95:in `action'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/cli/build.rb:65:in `build'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.15.4/lib/thor/task.rb:27:in `run'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.15.4/lib/thor/invocation.rb:120:in `invoke_task'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.15.4/lib/thor.rb:275:in `dispatch'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.15.4/lib/thor/base.rb:425:in `start'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/cli.rb:77:in `method_missing'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.15.4/lib/thor/task.rb:29:in `run'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.15.4/lib/thor/task.rb:126:in `run'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.15.4/lib/thor/invocation.rb:120:in `invoke_task'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.15.4/lib/thor.rb:275:in `dispatch'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.15.4/lib/thor/base.rb:425:in `start'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/lib/middleman-core/cli.rb:22:in `start'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/gems/middleman-core-3.0.14/bin/middleman:18:in `<top (required)>'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/bin/middleman:23:in `load'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/bin/middleman:23:in `<main>'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/mbp-gomes/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `<main>'
Any information that helps?
RUBY: ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.0]
RAILS: Rails 4.0.0
GEM LIST:
actionmailer (4.0.0, 2.3.18)
actionpack (4.0.0, 2.3.18)
activemodel (4.0.0)
activerecord (4.0.0, 2.3.18)
activerecord-deprecated_finders (1.0.3)
activeresource (2.3.18)
activesupport (4.0.0, 3.2.13, 2.3.18)
arel (4.0.0)
atomic (1.1.10)
bigdecimal (1.1.0)
bootstrap-sass (2.3.2.1)
builder (3.1.4)
bundler (1.3.5)
bundler-unload (1.0.1)
chunky_png (1.2.8)
coffee-script (2.2.0)
coffee-script-source (1.3.3)
compass (0.12.2)
erubis (2.7.0)
execjs (1.4.0)
ffi (1.9.0)
fssm (0.2.10)
haml (4.0.3)
hike (1.2.3)
http_router (0.10.2)
i18n (0.6.4, 0.6.1)
io-console (0.3)
json (1.5.5)
listen (1.2.2, 0.7.3)
mail (2.5.4)
maruku (0.6.1)
middleman (3.0.14)
middleman-core (3.0.14)
middleman-more (3.0.14)
middleman-sprockets (3.1.2)
mime-types (1.23)
minitest (4.7.5, 2.5.1)
multi_json (1.7.7)
padrino-core (0.10.7)
padrino-helpers (0.10.7)
polyglot (0.3.3)
rack (1.5.2, 1.4.5, 1.1.6)
rack-protection (1.5.0)
rack-test (0.6.2)
rails (4.0.0, 2.3.18)
railties (4.0.0)
rake (10.1.0, 0.9.2.2)
rb-fsevent (0.9.3)
rb-inotify (0.9.0)
rb-kqueue (0.2.0)
rdoc (3.9.5)
rubygems-bundler (1.2.2)
rvm (1.11.3.8)
sass (3.2.9)
sinatra (1.3.6)
sprockets (2.10.0)
sprockets-helpers (1.0.1)
sprockets-rails (2.0.0)
sprockets-sass (1.0.1)
syntax (1.0.0)
thor (0.18.1, 0.15.4)
thread_safe (0.1.0)
tilt (1.4.1, 1.3.7)
treetop (1.4.14)
tzinfo (0.3.37)
uglifier (1.2.7)
url_mount (0.2.1)
Thanks in advance!
Best

Please have a look here. It's listed in there issues

Related

Rails server does not start

I have installed Ruby 2.2.2-x64 with DevKit DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe on Windows 8.1.
I updated the gem, installed therubyracer, node.js, therubyrhino, sqllite3, an my gem file have this line added:
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
My local gems are:
C:\Users\ogautier>gem list
*** LOCAL GEMS ***
actionmailer (4.2.1)
actionpack (4.2.1)
actionview (4.2.1)
activejob (4.2.1)
activemodel (4.2.1)
activerecord (4.2.1)
activesupport (4.2.1)
arel (6.0.0)
bigdecimal (1.2.7, 1.2.6)
binding_of_caller (0.7.2)
builder (3.2.2)
bundler (1.9.8, 1.9.7)
byebug (4.0.5)
coffee-rails (4.1.0)
coffee-script (2.4.1)
coffee-script-source (1.9.1.1)
columnize (0.9.0)
debug_inspector (0.0.2)
erubis (2.7.0)
execjs (2.5.2)
globalid (0.3.5)
i18n (0.7.0)
io-console (0.4.3)
jbuilder (2.2.13)
jquery-rails (4.0.3)
json (1.8.2, 1.8.1)
loofah (2.0.2)
mail (2.6.3)
mime-types (2.5)
mini_portile (0.6.2)
minitest (5.6.1, 5.4.3)
multi_json (1.11.0)
nokogiri (1.6.6.2 x64-mingw32)
power_assert (0.2.3, 0.2.2)
psych (2.0.13, 2.0.8)
rack (1.6.1)
rack-test (0.6.3)
rails (4.2.1)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.6)
rails-html-sanitizer (1.0.2)
railties (4.2.1)
rake (10.4.2)
rdoc (4.2.0)
rubygems-update (2.4.6)
sass (3.4.13)
sass-rails (5.0.3)
sdoc (0.4.1)
sprockets (3.1.0)
sprockets-rails (2.3.1)
sqlite3 (1.3.10 x64-mingw32)
test-unit (3.0.9, 3.0.8)
therubyrhino (2.0.4)
therubyrhino_jar (1.7.6)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.1, 1.4.1)
turbolinks (2.5.3)
tzinfo (1.2.2)
tzinfo-data (1.2015.4)
uglifier (2.7.1)
web-console (2.1.2)
But the server does not start with rails server command, the error is listed below:
C:\Users\ogautier\RoR\holamundo>rails server
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x64-mingw32/lib/sqlite3.rb
:6:in `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x64-mingw32/l
ib/sqlite3.rb:6:in `rescue in <top (required)>'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x64-mingw32/l
ib/sqlite3.rb:2:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.9.7/lib/bundler/ru
ntime.rb:76:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.9.7/lib/bundler/ru
ntime.rb:76:in `block (2 levels) in require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.9.7/lib/bundler/ru
ntime.rb:72:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.9.7/lib/bundler/ru
ntime.rb:72:in `block in require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.9.7/lib/bundler/ru
ntime.rb:61:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.9.7/lib/bundler/ru
ntime.rb:61:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.9.7/lib/bundler.rb
:134:in `require'
from C:/Users/ogautier/RoR/holamundo/config/application.rb:7:in `<top (r
equired)>'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands/commands_tasks.rb:78:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands/commands_tasks.rb:78:in `block in server'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands/commands_tasks.rb:75:in `tap'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands/commands_tasks.rb:75:in `server'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands/commands_tasks.rb:39:in `run_command!'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Is there someone that help me please?
Thanks!!
From what I've gathered this seems to be a windows specific issue with SQLite3. I would suggest taking a look at cannot load such file -- sqlite3/sqlite3_native (LoadError) on ruby on rails as there seems to be some workarounds there to get by this issue.

Error using activerecord-sqlserver-adapter

I installed activerecord-sqlserver-adapter such that it appears in my local gems.
Running the command...
rails generate scaffold Tablename fieldname:fieldtype
returns an error (as below). I've rails 1.9.2 installed. Any guidance or assistance would be much appreciated. Thanks
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:251:in `require': Please install the sqlserver adapter: `gem install activerecord-sqlserver-adapter` (no such file to load -- active_record/connection_adapters/sqlserver_adapter) (LoadError)
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:251:in `block in require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:251:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in `resolve_hash_connection'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:in `spec'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:129:in `establish_connection'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/railtie.rb:82:in `block (2 levels) in <class:Railtie>'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/lazy_load_hooks.rb:42:in `each'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/base.rb:721:in `<top (required)>'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/generators/named_base.rb:166:in `pluralize_table_names?'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/generators/named_base.rb:114:in `table_name'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/rails/generators/active_record/model/model_generator.rb:17:in `create_migration_file'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/task.rb:27:in `run'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:120:in `invoke_task'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `block in invoke_all'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `each'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `map'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `invoke_all'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/group.rb:238:in `dispatch'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:109:in `invoke'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/group.rb:281:in `block in _invoke_for_class_method'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/shell.rb:74:in `with_padding'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/group.rb:270:in `_invoke_for_class_method'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/group.rb:150:in `_invoke_from_option_orm'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/task.rb:27:in `run'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:120:in `invoke_task'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `block in invoke_all'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `each'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `map'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `invoke_all'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/group.rb:238:in `dispatch'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/base.rb:425:in `start'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/generators.rb:171:in `invoke'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-.2.8/lib/rails/commands/generate.rb:12:in `<top (required)>'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:251:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:251:in `block in require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:251:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:29:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
* LOCAL GEMS *
actionmailer (3.2.8, 3.1.0, 2.2.3)
actionpack (3.2.8, 3.1.0, 2.2.3)
activemodel (3.2.9, 3.2.8, 3.1.0)
activerecord (3.2.8, 3.1.0)
activerecord-sqlserver-adapter (3.2.10, 3.1.7)
activeresource (3.2.8, 3.1.0)
activesupport (3.2.9, 3.2.8, 3.1.0, 2.2.3)
ansi (1.4.3, 1.3.0)
archive-tar-minitar (0.5.2)
arel (3.0.2, 2.2.1)
bcrypt-ruby (3.0.1 x86-mingw32)
builder (3.0.4, 3.0.0)
bundler (1.2.1)
coffee-rails (3.2.2, 3.1.1)
coffee-script (2.2.0)
coffee-script-source (1.4.0, 1.1.2)
columnize (0.3.6)
erubis (2.7.0)
execjs (1.4.0, 1.2.9)
ffi (1.1.5)
hike (1.2.1)
i18n (0.6.1, 0.6.0)
journey (1.0.4)
jquery-rails (2.1.4, 2.1.3, 1.0.14)
json (1.7.5, 1.6.1)
linecache19 (0.5.12)
mail (2.4.4, 2.3.0)
mime-types (1.19, 1.16)
minitest (4.1.0, 3.5.0, 3.4.0, 1.6.0)
multi_json (1.4.0, 1.3.7, 1.3.6, 1.0.3)
nokogiri (1.5.5 x86-mingw32)
polyglot (0.3.3, 0.3.2)
rack (1.4.1, 1.3.4)
rack-cache (1.2, 1.0.3)
rack-mount (0.8.3)
rack-ssl (1.3.2)
rack-test (0.6.2, 0.6.1)
rails (3.2.8, 3.1.0)
railties (3.2.8, 3.1.0)
rake (10.0.2, 10.0.1, 0.9.2.2, 0.9.2, 0.8.7)
rdiscount (1.6.8)
rdoc (3.12, 3.10, 2.5.8)
ruby-debug-base19 (0.11.25)
ruby-debug-ide (0.4.16)
ruby-debug19 (0.11.6)
ruby_core_source (0.1.5)
sass (3.2.3, 3.1.10)
sass-rails (3.2.5, 3.1.4)
sprockets (2.1.3, 2.0.2)
sqlite3 (1.3.6 x86-mingw32, 1.3.4 x86-mingw32)
sqlite3-ruby (1.3.3)
thor (0.16.0, 0.14.6)
tilt (1.3.3)
tiny_tds (0.5.1 x86-mingw32)
tmail (1.2.7.1)
treetop (1.4.12, 1.4.11, 1.4.10)
turn (0.9.6, 0.8.3)
tzinfo (0.3.35, 0.3.30)
uglifier (1.3.0, 1.0.3)
win32-sound (0.5.0)
Is the gem listed in your Gemfile?
Add to your gemfile (gem manual)
gem 'tiny_tds'
gem 'activerecord-sqlserver-adapter', '~> 3.1.0'
and run bundle install again
Finally resolved this. To fix I uninstalled 2 conflicting versions of activerecord-sqlserver-adapter, installed ruby-odbc gem, installed activerecord-sqlserver-adapter, tweaked the gemfile to reflect correct versions then ran bundle update, then bundle install and lastly the rails generate scaffold... command.

undefined method `mount_uploader' for Category:Class Mongoid Nginx Passenger

I'm using carrierwave in my application. The problem is it works well in development mode. But when deploying to nginx with passenger it throws the following error:
/home/webserver/raw/releases/20110919033346/app/models/category.rb:11: undefined method `mount_uploader' for Category:Class (NoMethodError)
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:454:in `load'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:454:in `load_file'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:596:in `new_constants_in'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:453:in `load_file'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:340:in `require_or_load'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:300:in `depend_on'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:216:in `require_dependency'
from /opt/ruby/lib/ruby/gems/1.8/gems/mongoid-2.0.1/lib/rails/mongoid.rb:55:in `load_model'
from /opt/ruby/lib/ruby/gems/1.8/gems/mongoid-2.0.1/lib/rails/mongoid.rb:18:in `load_models'
from /opt/ruby/lib/ruby/gems/1.8/gems/mongoid-2.0.1/lib/rails/mongoid.rb:17:in `each'
from /opt/ruby/lib/ruby/gems/1.8/gems/mongoid-2.0.1/lib/rails/mongoid.rb:17:in `load_models'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/paths.rb:102:in `each'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/paths.rb:102:in `each'
from /opt/ruby/lib/ruby/gems/1.8/gems/mongoid-2.0.1/lib/rails/mongoid.rb:16:in `load_models'
from /opt/ruby/lib/ruby/gems/1.8/gems/mongoid-2.0.1/lib/mongoid/railtie.rb:88:in `_callback_before_5'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/callbacks.rb:420:in `_run_prepare_callbacks'
from /opt/ruby/lib/ruby/gems/1.8/gems/actionpack-3.0.9/lib/action_dispatch/middleware/callbacks.rb:40:in `initialize'
from /opt/ruby/lib/ruby/gems/1.8/gems/actionpack-3.0.9/lib/action_dispatch/middleware/stack.rb:33:in `new'
from /opt/ruby/lib/ruby/gems/1.8/gems/actionpack-3.0.9/lib/action_dispatch/middleware/stack.rb:33:in `build'
from /opt/ruby/lib/ruby/gems/1.8/gems/actionpack-3.0.9/lib/action_dispatch/middleware/stack.rb:79:in `build'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:209:in `inject'
from /opt/ruby/lib/ruby/gems/1.8/gems/actionpack-3.0.9/lib/action_dispatch/middleware/stack.rb:79:in `each'
from /opt/ruby/lib/ruby/gems/1.8/gems/actionpack-3.0.9/lib/action_dispatch/middleware/stack.rb:79:in `inject'
from /opt/ruby/lib/ruby/gems/1.8/gems/actionpack-3.0.9/lib/action_dispatch/middleware/stack.rb:79:in `build'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:162:in `build_middleware_stack'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application/finisher.rb:35
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:25:in `instance_exec'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:25:in `run'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:50:in `run_initializers'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:49:in `each'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:49:in `run_initializers'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:134:in `initialize!'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:77:in `send'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:77:in `method_missing'
from /home/webserver/raw/releases/20110919033346/config/environment.rb:5
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `load_dependency'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:596:in `new_constants_in'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `load_dependency'
from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:103:in `require_environment!'
from /opt/ruby/lib/ruby/gems/1.8/gems/railties-3.0.9/lib/rails/commands.rb:22
from script/rails:6:in `require'
from script/rails:6
Here is my gem list
abstract (1.0.0)
actionmailer (3.0.9, 3.0.7)
actionpack (3.0.9, 3.0.7)
activemodel (3.0.9, 3.0.7)
activerecord (3.0.9, 3.0.7)
activeresource (3.0.9, 3.0.7)
activesupport (3.1.0, 3.0.9, 3.0.7)
akami (1.0.0)
arel (2.0.10)
bcrypt-ruby (3.0.0)
bson (1.3.1)
bson_ext (1.3.1)
builder (3.0.0, 2.1.2)
bundle (0.0.1)
bundler (1.0.13)
carrierwave (0.5.7, 0.5.6, 0.5.4)
daemon_controller (0.2.6)
erubis (2.6.6)
escape (0.0.4)
exception_notification_rails3 (1.2.0)
fastthread (1.0.7)
gyoku (0.4.4)
httpi (0.9.5, 0.9.4)
i18n (0.6.0, 0.5.0)
mail (2.2.19)
mime-types (1.16)
mini_magick (3.3, 3.2.1)
mongo (1.3.1)
mongoid (2.0.1)
multi_json (1.0.3)
nokogiri (1.5.0, 1.4.4)
nori (1.0.2, 0.2.2)
passenger (3.0.7)
polyglot (0.3.2, 0.3.1)
pr_geohash (1.0.0)
pyu-ntlm-http (0.1.3.1)
rack (1.2.3)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.9, 3.0.7)
railties (3.0.9, 3.0.7)
rake (0.9.2, 0.9.0)
rdoc (3.9.4, 3.8)
rmagick (2.13.1)
rsolr (0.12.1)
rubyzip (0.9.4)
savon (0.9.7, 0.9.6, 0.9.2)
subexec (0.1.0, 0.0.4)
sunspot (1.2.1)
sunspot_rails_mongoid (1.2.1)
SystemTimer (1.2.3)
thor (0.14.6)
treetop (1.4.10, 1.4.9)
tzinfo (0.3.29, 0.3.27)
wasabi (2.0.0)
will_paginate (3.0.0, 3.0.pre4, 3.0.pre2)
The ruby version is ruby 1.8.7 (2010-04-19 patchlevel 253) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2010.02
Please, could give any idea about this.
Thank you in advance!
I had the the same / a similar problem. In my case, it was something silly. In my Gemfile, I just referenced the gem, but you need to require the mongoid extension. So your line in the Gemfile should look like this:
gem 'carrierwave-mongoid', :require => 'carrierwave/mongoid'

migrating simple rails database to mysql

i am interested in creating a rails app with a mysql database. i am new to rails and am just trying to start creating something simple:
rails -d mysql MyMoviesSQL
cd MyMoviesSQL
script/generate scaffold Movies title:string rating:integer
rake db:migrate
i am seeing the following error:
rake aborted!
NoMethodError: undefined method `ord' for 0:Fixnum: SET NAMES 'utf8'
if i do a trace:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
NoMethodError: undefined method `ord' for 0:Fixnum: SET NAMES 'utf8'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract_adapter.rb:219:in `log'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:323:in `execute'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:599:in `configure_connection'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:594:in `connect'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:203:in `initialize'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:75:in `new'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `send'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:435:in `initialize'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:400:in `new'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:400:in `up'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:383:in `migrate'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/tasks/databases.rake:116
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
here are my versions:
rails - 2.3.5
ruby - 1.8.6
gem list
*** LOCAL GEMS ***
actionmailer (2.3.5, 1.3.6)
actionpack (2.3.5, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.5, 1.15.6)
activeresource (2.3.5)
activesupport (2.3.5, 1.4.4)
acts_as_ferret (0.4.1)
capistrano (2.0.0)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.9)
dbi (0.4.3)
deprecated (2.0.1)
dnssd (0.6.0)
fastthread (1.0.1)
fcgi (0.8.7)
ferret (0.11.4)
gem_plugin (0.2.3)
highline (1.2.9)
hpricot (0.6)
libxml-ruby (0.9.5, 0.3.8.4)
mongrel (1.1.4)
needle (1.3.0)
net-sftp (1.1.0)
net-ssh (1.1.2)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7, 0.7.3)
RedCloth (3.0.4)
ruby-openid (1.1.4)
ruby-yadis (0.3.4)
rubygems-update (1.3.6)
rubynode (0.1.3)
sqlite3-ruby (1.2.1)
termios (0.9.4)
also, if i need to add a patch to FixNum, can someone please tell which file to add the patch to.
thanks for your help
installed the mysql gem
*** LOCAL GEMS ***
actionmailer (2.3.5, 1.3.6)
actionpack (2.3.5, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.5, 1.15.6)
activeresource (2.3.5)
activesupport (2.3.5, 1.4.4)
acts_as_ferret (0.4.1)
autotest (4.2.9)
autotest-fsevent (0.2.2)
autotest-growl (0.2.3)
autotest-rails (4.1.0)
capistrano (2.0.0)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.9)
dbi (0.4.3)
deprecated (2.0.1)
dnssd (0.6.0)
fastthread (1.0.1)
fcgi (0.8.7)
ferret (0.11.4)
gem_plugin (0.2.3)
highline (1.2.9)
hpricot (0.6)
libxml-ruby (0.9.5, 0.3.8.4)
mongrel (1.1.4)
mysql (2.8.1)
needle (1.3.0)
net-sftp (1.1.0)
net-ssh (1.1.2)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7, 0.7.3)
RedCloth (3.0.4)
rspec (1.3.0)
rspec-rails (1.3.2)
ruby-openid (1.1.4)
ruby-yadis (0.3.4)
rubygems-update (1.3.6)
rubynode (0.1.3)
sqlite3-ruby (1.2.1)
sys-uname (0.8.4)
termios (0.9.4)
ZenTest (4.3.1)
still occurring
rake db:migrate
rake aborted!
NoMethodError: undefined method `ord' for 0:Fixnum: SET NAMES 'utf8'

There was an error while trying to load the gem 'sass-rails'. (Bundler::GemRequireError)

I am getting an error while starting rails server.
C:\Ruby22-x64\WebAppRails>rails s C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'sass-rails'. (Bundler::GemRequireError)
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
from C:/Ruby22-x64/WebAppRails/config/application.rb:7:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:78:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:78:in `block in server'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `tap'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `server'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Here are the gems I'm using:
C:\Ruby22-x64\WebAppRails>bundle show
Gems included by the bundle:
actionmailer (4.2.6)
actionpack (4.2.6)
actionview (4.2.6)
activejob (4.2.6)
activemodel (4.2.6)
activerecord (4.2.6)
activesupport (4.2.6)
arel (6.0.3)
binding_of_caller (0.7.2)
builder (3.2.2)
bundler (1.11.2)
byebug (8.2.5)
coffee-rails (4.1.1)
coffee-script (2.4.1)
coffee-script-source (1.10.0)
concurrent-ruby (1.0.1)
debug_inspector (0.0.2)
erubis (2.7.0)
execjs (2.6.0)
globalid (0.3.6)
i18n (0.7.0)
jbuilder (2.4.1)
jquery-rails (4.1.1)
json (1.8.3)
loofah (2.0.3)
mail (2.6.4)
mime-types (3.0)
mime-types-data (3.2016.0221)
mini_portile2 (2.0.0)
minitest (5.8.4)
multi_json (1.11.3)
nokogiri (1.6.7.2)
rack (1.6.4)
rack-test (0.6.3)
rails (4.2.6)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.3)
railties (4.2.6)
rake (11.1.2)
rdoc (4.2.2)
sass (3.4.22)
sass-rails (5.0.4)
sdoc (0.4.1)
sprockets (3.6.0)
sprockets-rails (3.0.4)
sqlite3 (1.3.11)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.2)
turbolinks (2.5.3)
tzinfo (1.2.2)
tzinfo-data (1.2016.4)
uglifier (3.0.0)
web-console (2.3.0)
gem version is 2.4.5.1 and ruby version is 2.2.4
What do I need to do to fix this?
Add the following to your Gemfile:
gem 'sass-rails', '>= 5.0.3'
And do
bundle update sass-rails
My problem got solved when I installed proper version of Ruby for my freshly cloned Rails app - I had 2.4.1 installed but my app needed 2.3.

Resources