I've got to fix a bug on an old Rails 2.3.8 project and I'm running in to trouble loading the development environment.
I've converted the project to use bundler, here is my Gemfile:
source :gemcutter
gem "rails", "2.3.8"
gem "pg"
gem 'rdoc'
gem "haml"
gem "will_paginate", '~> 2.3.11'
# RESTful ACL support.
gem "restful_acl", "3.0.4"
# awesome nested set for sub categories
gem "awesome_nested_set", "< 2.0"
# rspec tests
gem 'machinist', "< 2.0"
gem "rspec", "1.3.0"
gem "rspec-rails", "1.3.2"
gem "test-unit"
# Deployment
gem "capistrano"
When I start the server with 'script/server' and load the website up I get the following error
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in `parse'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/psych.rb:151:in `parse'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/psych.rb:127:in `load'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/vendor/i18n-0.3.7/i18n/backend/base.rb:244:in `load_yml'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/vendor/i18n-0.3.7/i18n/backend/base.rb:231:in `load_file'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/vendor/i18n-0.3.7/i18n/backend/base.rb:18:in `block in load_translations'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/vendor/i18n-0.3.7/i18n/backend/base.rb:18:in `each'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/vendor/i18n-0.3.7/i18n/backend/base.rb:18:in `load_translations'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/vendor/i18n-0.3.7/i18n/backend/base.rb:98:in `init_translations'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/vendor/i18n-0.3.7/i18n/backend/base.rb:84:in `available_locales'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/vendor/i18n-0.3.7/i18n.rb:54:in `available_locales'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/vendor/i18n-0.3.7/i18n.rb:118:in `available_locales'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_view/template.rb:226:in `valid_locale?'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_view/template.rb:243:in `parse_extensions'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_view/template.rb:233:in `split'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_view/template.rb:118:in `initialize'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_view/reloadable_template.rb:81:in `initialize'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_view/reloadable_template.rb:38:in `new'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_view/reloadable_template.rb:38:in `register_template_from_file'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_view/reloadable_template.rb:62:in `block in load_all_templates_from_dir'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_view/reloadable_template.rb:62:in `each'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_view/reloadable_template.rb:62:in `load_all_templates_from_dir'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_view/reloadable_template.rb:29:in `[]'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_view/paths.rb:48:in `block in find_template'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_view/paths.rb:47:in `each'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_view/paths.rb:47:in `find_template'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/base.rb:1389:in `default_template'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/base.rb:896:in `render'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:51:in `block in render_with_benchmark'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `block in ms'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:51:in `render_with_benchmark'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/base.rb:1326:in `default_render'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/base.rb:1332:in `perform_action'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/filters.rb:617:in `call_filters'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in `block in perform_action_with_benchmark'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `block in ms'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/flash.rb:151:in `perform_action_with_flash'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/base.rb:532:in `process'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/filters.rb:606:in `process_with_filters'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/base.rb:391:in `process'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/base.rb:386:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:438:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:87:in `dispatch'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:121:in `_call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:130:in `block in build_middleware_stack'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `block in call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:9:in `cache'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:28:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.1.5/lib/rack/head.rb:9:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.1.5/lib/rack/methodoverride.rb:24:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/session/cookie_store.rb:99:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.1.5/lib/rack/lock.rb:11:in `block in call'
<internal:prelude>:10:in `synchronize'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.1.5/lib/rack/lock.rb:11:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:114:in `block in call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/reloader.rb:34:in `run'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:108:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rails-2.3.8/lib/rails/rack/static.rb:31:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.1.5/lib/rack/urlmap.rb:47:in `block in call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.1.5/lib/rack/urlmap.rb:41:in `each'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.1.5/lib/rack/urlmap.rb:41:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rails-2.3.8/lib/rails/rack/log_tailer.rb:17:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.1.5/lib/rack/content_length.rb:13:in `call'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rack-1.1.5/lib/rack/handler/webrick.rb:48:in `service'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/home/map7/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
I've tried remarking out the sessions controller and it doesn't change the error.
I guess you were using ruby 1.8.7, and now you are trying to use 1.9.3 which has different YAML parser: http://blog.tddium.com/2011/12/01/psych-isnt-syck/
Also note that rails 2.3 does not support ruby 1.9.3. It would be easiest to use ruby 1.8.7.
Switch to ruby 1.9.2 should not be hard, you would probably need utf8 patch: http://blog.kennejima.com/post/835166063/making-ruby-1-9-rails-2-3-to-play-nice-with-utf-8
Using rails 2.3 with ruby 1.9.3 is not that easy, see: http://developer.uservoice.com/blog/2012/03/04/how-to-upgrade-a-rails-2-3-app-to-ruby-1-9-3/
A work around for this is to not get gems from rubygems.org. You can do this by specifying a GitHub repo for a gem instead of letting bundler download it from rubygems.org.
The problem is in the charset being served by the host from which you download the rubygem, if I remember correctly.
Related
very new with ruby on rails. Apologize in advance for the somewhat obvious nature of this question.
I have a new rails app and I have included the shopify_app gem in my Gemfile. When trying to get the app up and running I am receiving the following error.
uninitialized constant ShopifyApp : in the following segment of code is where the error is occurring.
Rails.application.routes.draw do
root :to => 'home#index'
mount ShopifyApp::Engine, at: '/' # this is the line throwing the error
end
My question is , what could cause this error to be thrown? I believe this was installed when i ran bundle install ( with the shopify_app gem in the Gemfile) Please let me know if you need additional information. Any point in the right direction would be helpful for me. Thanks.
Here is the full trace associated with it as well.
config/routes.rb:3:in `block in <top (required)>'
actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:436:in `instance_exec'
actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:436:in `eval_block'
actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:418:in `draw'
config/routes.rb:1:in `<top (required)>'
railties (5.1.6) lib/rails/application/routes_reloader.rb:55:in `block in load_paths'
railties (5.1.6) lib/rails/application/routes_reloader.rb:55:in `each'
railties (5.1.6) lib/rails/application/routes_reloader.rb:55:in `load_paths'
railties (5.1.6) lib/rails/application/routes_reloader.rb:18:in `reload!'
railties (5.1.6) lib/rails/application/routes_reloader.rb:41:in `block in updater'
activesupport (5.1.6) lib/active_support/file_update_checker.rb:81:in `execute'
railties (5.1.6) lib/rails/application/routes_reloader.rb:25:in `execute'
railties (5.1.6) lib/rails/application/finisher.rb:141:in `block (2 levels) in <module:Finisher>'
activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `instance_exec'
activesupport (5.1.6) lib/active_support/callbacks.rb:413:in `block in make_lambda'
activesupport (5.1.6) lib/active_support/callbacks.rb:197:in `block (2 levels) in halting'
activesupport (5.1.6) lib/active_support/callbacks.rb:601:in `block (2 levels) in default_terminator'
activesupport (5.1.6) lib/active_support/callbacks.rb:600:in `catch'
activesupport (5.1.6) lib/active_support/callbacks.rb:600:in `block in default_terminator'
activesupport (5.1.6) lib/active_support/callbacks.rb:198:in `block in halting'
activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `block in invoke_before'
activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `each'
activesupport (5.1.6) lib/active_support/callbacks.rb:507:in `invoke_before'
activesupport (5.1.6) lib/active_support/callbacks.rb:130:in `run_callbacks'
activesupport (5.1.6) lib/active_support/execution_wrapper.rb:108:in `run!'
activesupport (5.1.6) lib/active_support/reloader.rb:113:in `run!'
activesupport (5.1.6) lib/active_support/execution_wrapper.rb:70:in `block in run!'
activesupport (5.1.6) lib/active_support/execution_wrapper.rb:67:in `tap'
activesupport (5.1.6) lib/active_support/execution_wrapper.rb:67:in `run!'
activesupport (5.1.6) lib/active_support/reloader.rb:59:in `run!'
actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:10:in `call'
actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
web-console (3.6.0) lib/web_console/middleware.rb:137:in `call_app'
web-console (3.6.0) lib/web_console/middleware.rb:22:in `block in call'
web-console (3.6.0) lib/web_console/middleware.rb:20:in `catch'
web-console (3.6.0) lib/web_console/middleware.rb:20:in `call'
actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app'
railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call'
activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged'
activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged'
railties (5.1.6) lib/rails/rack/logger.rb:24:in `call'
sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call'
rack (2.0.4) lib/rack/method_override.rb:22:in `call'
rack (2.0.4) lib/rack/runtime.rb:22:in `call'
activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call'
rack (2.0.4) lib/rack/sendfile.rb:111:in `call'
railties (5.1.6) lib/rails/engine.rb:522:in `call'
puma (3.11.3) lib/puma/configuration.rb:225:in `call'
puma (3.11.3) lib/puma/server.rb:624:in `handle_request'
puma (3.11.3) lib/puma/server.rb:438:in `process_client'
puma (3.11.3) lib/puma/server.rb:302:in `block in run'
puma (3.11.3) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
This error occurred while loading the following files:
Gemfile:
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.6'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Shopify App Gem - should include Shopify API as well
gem 'shopify_app'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '~> 2.13'
gem 'selenium-webdriver'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
It looks like you want to leave off at: '/'. You would only specify a NESTED route, one that wasn't / (root). You just want to mount in the root. As you can see here, it's going to create a bunch of routes for you.
https://github.com/Shopify/shopify_app#mounting-the-engine
Mounting the Engine will provide the basic routes to authenticating a shop with your application. By default it will provide:
Verb Route Action
GET '/login' Login
POST '/login' Login
GET '/auth/shopify/callback' Authenticate Callback
GET '/logout' Logout
POST '/webhooks/:type' Webhook Callback
I'v install ruby version 2.3.1p112 with ruby devkit on windows 10 64bit using ruby installer and rails 5 then run command:
rails new app
I'v got my new app directory then I cd in it then run
bundle install
rails s
but I'v got this error:
LoadError (Could not load 'active_record/connection_adapters/sqlite3_adapter'.
Make sure that the adapter in config/database.yml is valid.
If you use an adapter other than 'mysql2', 'postgresql' or 'sqlite3'
add the necessary adapter gem to the Gemfile.):
I'v edit sqlite3-1.3.11-x86-mingw32.gemspec file in line 10 from this:
s.require_paths = ["lib"]
to this:
s.require_paths = ["lib/sqlite3_native"]
but the same error appear.
datebase.yml:
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: sqlite3
pool: 5
timeout: 5000
development:
<<: *default
database: db/development.sqlite3
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
database: db/test.sqlite3
production:
<<: *default
database: db/production.sqlite3
This is my Gemfile:
source 'https://rubygems.org'
# Use credit_debit_card_number_validator to validate and generate card numbers
gem 'credit_debit_card_number_validator'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
# Use Puma as the app server
gem 'puma', '~> 3.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platform: :mri
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
and this is Application trace:
This error occurred while loading the following files:
active_record/base
finally this is Framework trace:
activesupport (5.0.0.1) lib/active_support/dependencies.rb:293:in `require'
activesupport (5.0.0.1) lib/active_support/dependencies.rb:293:in `block in require'
activesupport (5.0.0.1) lib/active_support/dependencies.rb:259:in `load_dependency'
activesupport (5.0.0.1) lib/active_support/dependencies.rb:293:in `require'
activerecord (5.0.0.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:8:in `<top (required)>'
activesupport (5.0.0.1) lib/active_support/dependencies.rb:293:in `require'
activesupport (5.0.0.1) lib/active_support/dependencies.rb:293:in `block in require'
activesupport (5.0.0.1) lib/active_support/dependencies.rb:259:in `load_dependency'
activesupport (5.0.0.1) lib/active_support/dependencies.rb:293:in `require'
activerecord (5.0.0.1) lib/active_record/connection_adapters/connection_specification.rb:174:in `spec'
activerecord (5.0.0.1) lib/active_record/connection_handling.rb:53:in `establish_connection'
activerecord (5.0.0.1) lib/active_record/railtie.rb:125:in `block (2 levels) in <class:Railtie>'
activesupport (5.0.0.1) lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
activesupport (5.0.0.1) lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
activesupport (5.0.0.1) lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
activesupport (5.0.0.1) lib/active_support/lazy_load_hooks.rb:44:in `each'
activesupport (5.0.0.1) lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
activerecord (5.0.0.1) lib/active_record/base.rb:324:in `<module:ActiveRecord>'
activerecord (5.0.0.1) lib/active_record/base.rb:24:in `<top (required)>'
activesupport (5.0.0.1) lib/active_support/dependencies.rb:293:in `require'
activesupport (5.0.0.1) lib/active_support/dependencies.rb:293:in `block in require'
activesupport (5.0.0.1) lib/active_support/dependencies.rb:259:in `load_dependency'
activesupport (5.0.0.1) lib/active_support/dependencies.rb:293:in `require'
activerecord (5.0.0.1) lib/active_record/migration.rb:558:in `connection'
activerecord (5.0.0.1) lib/active_record/migration.rb:545:in `call'
actionpack (5.0.0.1) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
activesupport (5.0.0.1) lib/active_support/callbacks.rb:97:in `__run_callbacks__'
activesupport (5.0.0.1) lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
activesupport (5.0.0.1) lib/active_support/callbacks.rb:90:in `run_callbacks'
actionpack (5.0.0.1) lib/action_dispatch/middleware/callbacks.rb:36:in `call'
actionpack (5.0.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.0.0.1) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
actionpack (5.0.0.1) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
web-console (3.3.1) lib/web_console/middleware.rb:131:in `call_app'
web-console (3.3.1) lib/web_console/middleware.rb:28:in `block in call'
web-console (3.3.1) lib/web_console/middleware.rb:18:in `catch'
web-console (3.3.1) lib/web_console/middleware.rb:18:in `call'
actionpack (5.0.0.1) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
railties (5.0.0.1) lib/rails/rack/logger.rb:36:in `call_app'
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `block in call'
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `block in tagged'
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (5.0.0.1) lib/active_support/tagged_logging.rb:70:in `tagged'
railties (5.0.0.1) lib/rails/rack/logger.rb:24:in `call'
sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call'
actionpack (5.0.0.1) lib/action_dispatch/middleware/request_id.rb:24:in `call'
rack (2.0.1) lib/rack/method_override.rb:22:in `call'
rack (2.0.1) lib/rack/runtime.rb:22:in `call'
activesupport (5.0.0.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
actionpack (5.0.0.1) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.0.0.1) lib/action_dispatch/middleware/static.rb:136:in `call'
rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
railties (5.0.0.1) lib/rails/engine.rb:522:in `call'
puma (3.6.0) lib/puma/configuration.rb:225:in `call'
puma (3.6.0) lib/puma/server.rb:578:in `handle_request'
puma (3.6.0) lib/puma/server.rb:415:in `process_client'
puma (3.6.0) lib/puma/server.rb:275:in `block in run'
puma (3.6.0) lib/puma/thread_pool.rb:116:in `block in spawn_thread'
First try
gem uninstall sqlite3
then run
bundle install
If that didn't work make sure you don't have a username and password and your Environment variable are ok.
Last just a word of advice try to use postgresql as it'll be more helpful in production.
I am trying to load my rails app in localhost:3000 however I've run into a few errors related to my rake versioning.
When I launch my server with rails server and then I refresh in the browser, this error shows up in my server logs:
ActiveRecord::PendingMigrationError - Migrations are pending; run 'bin/rake db:migrate RAILS_ENV=development' to resolve this issue.:
activerecord (4.0.4) lib/active_record/migration.rb:383:in `check_pending!'
activerecord (4.0.4) lib/active_record/migration.rb:370:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `run__4154752559951713534__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call'
better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call'
better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
quiet_assets (1.0.2) lib/quiet_assets.rb:18:in `call_with_quiet_assets'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/AaronWilliamson/.rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
/Users/AaronWilliamson/.rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
/Users/AaronWilliamson/.rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
However, when I follow the error's advice and run bin/rake db:migrate RAILS_ENV=development I get the following error:
Aarons-iMac:ripelist-classifieds AaronWilliamson$ bin/rake db:migrate RAILS_ENV=development
== 20140424074405 AddDeviseToUsers: migrating =================================
-- change_table(:users)
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
PG::DuplicateColumn: ERROR: column "email" of relation "users" already exists
: ALTER TABLE "users" ADD COLUMN "email" character varying(255) DEFAULT '' NOT NULL/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in `async_exec'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in `block in execute'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract_adapter.rb:442:in `block in log'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract_adapter.rb:437:in `log'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:127:in `execute'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/schema_statements.rb:360:in `add_column'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/postgresql/schema_statements.rb:393:in `add_column'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/schema_definitions.rb:489:in `block (3 levels) in <class:Table>'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/schema_definitions.rb:488:in `each'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/schema_definitions.rb:488:in `block (2 levels) in <class:Table>'
/Users/AaronWilliamson/Ripelist-Classifieds/db/migrate/20140424074405_add_devise_to_users.rb:5:in `block in up'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/schema_statements.rb:334:in `change_table'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:629:in `block in method_missing'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:601:in `block in say_with_time'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:601:in `say_with_time'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:621:in `method_missing'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:387:in `method_missing'
/Users/AaronWilliamson/Ripelist-Classifieds/db/migrate/20140424074405_add_devise_to_users.rb:3:in `up'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:538:in `up'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:578:in `exec_migration'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:559:in `block (2 levels) in migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:558:in `block in migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:557:in `migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:713:in `migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:963:in `block in execute_migration_in_transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:1009:in `block in ddl_transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/database_statements.rb:221:in `within_new_transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/transactions.rb:209:in `transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:1009:in `ddl_transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:962:in `execute_migration_in_transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:924:in `block in migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:920:in `each'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:920:in `migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:768:in `up'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:746:in `migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/railties/databases.rake:42:in `block (2 levels) in <top (required)>'
ActiveRecord::StatementInvalid: PG::DuplicateColumn: ERROR: column "email" of relation "users" already exists
: ALTER TABLE "users" ADD COLUMN "email" character varying(255) DEFAULT '' NOT NULL
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in `async_exec'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in `block in execute'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract_adapter.rb:442:in `block in log'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract_adapter.rb:437:in `log'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:127:in `execute'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/schema_statements.rb:360:in `add_column'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/postgresql/schema_statements.rb:393:in `add_column'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/schema_definitions.rb:489:in `block (3 levels) in <class:Table>'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/schema_definitions.rb:488:in `each'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/schema_definitions.rb:488:in `block (2 levels) in <class:Table>'
/Users/AaronWilliamson/Ripelist-Classifieds/db/migrate/20140424074405_add_devise_to_users.rb:5:in `block in up'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/schema_statements.rb:334:in `change_table'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:629:in `block in method_missing'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:601:in `block in say_with_time'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:601:in `say_with_time'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:621:in `method_missing'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:387:in `method_missing'
/Users/AaronWilliamson/Ripelist-Classifieds/db/migrate/20140424074405_add_devise_to_users.rb:3:in `up'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:538:in `up'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:578:in `exec_migration'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:559:in `block (2 levels) in migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:558:in `block in migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:557:in `migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:713:in `migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:963:in `block in execute_migration_in_transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:1009:in `block in ddl_transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/database_statements.rb:221:in `within_new_transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/transactions.rb:209:in `transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:1009:in `ddl_transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:962:in `execute_migration_in_transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:924:in `block in migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:920:in `each'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:920:in `migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:768:in `up'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:746:in `migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/railties/databases.rake:42:in `block (2 levels) in <top (required)>'
PG::DuplicateColumn: ERROR: column "email" of relation "users" already exists
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in `async_exec'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in `block in execute'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract_adapter.rb:442:in `block in log'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activesupport-4.0.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract_adapter.rb:437:in `log'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:127:in `execute'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/schema_statements.rb:360:in `add_column'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/postgresql/schema_statements.rb:393:in `add_column'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/schema_definitions.rb:489:in `block (3 levels) in <class:Table>'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/schema_definitions.rb:488:in `each'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/schema_definitions.rb:488:in `block (2 levels) in <class:Table>'
/Users/AaronWilliamson/Ripelist-Classifieds/db/migrate/20140424074405_add_devise_to_users.rb:5:in `block in up'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/schema_statements.rb:334:in `change_table'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:629:in `block in method_missing'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:601:in `block in say_with_time'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:601:in `say_with_time'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:621:in `method_missing'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:387:in `method_missing'
/Users/AaronWilliamson/Ripelist-Classifieds/db/migrate/20140424074405_add_devise_to_users.rb:3:in `up'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:538:in `up'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:578:in `exec_migration'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:559:in `block (2 levels) in migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:558:in `block in migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:557:in `migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:713:in `migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:963:in `block in execute_migration_in_transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:1009:in `block in ddl_transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/database_statements.rb:221:in `within_new_transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/transactions.rb:209:in `transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:1009:in `ddl_transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:962:in `execute_migration_in_transaction'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:924:in `block in migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:920:in `each'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:920:in `migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:768:in `up'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/migration.rb:746:in `migrate'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/activerecord-4.0.4/lib/active_record/railties/databases.rake:42:in `block (2 levels) in <top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
Also, when I try to run a simple command like rake routes I get this error:
Aarons-iMac:ripelist-classifieds AaronWilliamson$ rake routes
rake aborted!
Gem::LoadError: You have already activated rake 10.3.1, but your Gemfile requires rake 10.2.2. Prepending `bundle exec` to your command may solve this.
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/bundler-1.5.3/lib/bundler/runtime.rb:34:in `block in setup'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/bundler-1.5.3/lib/bundler/runtime.rb:19:in `setup'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/bundler-1.5.3/lib/bundler.rb:119:in `setup'
/Users/AaronWilliamson/.gem/ruby/2.1.0/gems/bundler-1.5.3/lib/bundler/setup.rb:7:in `<top (required)>'
/Users/AaronWilliamson/Ripelist-Classifieds/config/boot.rb:4:in `<top (required)>'
/Users/AaronWilliamson/Ripelist-Classifieds/config/application.rb:1:in `<top (required)>'
/Users/AaronWilliamson/Ripelist-Classifieds/Rakefile:4:in `<top (required)>'
LoadError: cannot load such file -- bundler/setup
/Users/AaronWilliamson/Ripelist-Classifieds/config/boot.rb:4:in `<top (required)>'
/Users/AaronWilliamson/Ripelist-Classifieds/config/application.rb:1:in `<top (required)>'
/Users/AaronWilliamson/Ripelist-Classifieds/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
My Gemfile looks like this:
source 'https://rubygems.org'
gem 'rails'
gem 'pg'
gem 'sass-rails'
gem 'uglifier'
gem 'coffee-rails'
gem 'jquery-rails'
gem 'turbolinks'
gem 'bcrypt'
gem "paperclip", :git => "git://github.com/thoughtbot/paperclip.git"
gem 'bootstrap-sass'
gem 'bootstrap-sass-extras'
gem 'email_validator'
gem 'devise'
gem 'dimensions-rails'
gem 'unicorn'
group :development do
gem 'better_errors'
gem 'binding_of_caller'
gem 'quiet_assets'
gem 'letter_opener'
end
group :test, :development do
gem 'rspec-rails'
gem 'factory_girl_rails'
gem 'launchy'
gem 'capybara'
gem 'faker'
end
group :test do
gem 'shoulda-matchers'
end
I am using rails version 4.0.4
I am using ruby version 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin13.0]
I am fairly new to rails so layman's terms would be greatly appreciated to help me understand the problem. I just want to get my app running and my rake configuration back on track.
The Problem is with the gem rake, just update this Gem with the command bundle update rake and it would solve the problem while running the Migration.
From you log:
PG::DuplicateColumn: ERROR: column "email" of relation "users"
already exists
This mean in last migration 20140424074405 AddDeviseToUsers you try create column that already exists.
Try delete this migration.
About rake also from log:
You have already activated rake 10.3.1, but your Gemfile requires rake
10.2.2. Prepending bundle exec to your command may solve this.
This mean then you run rake routes it is execute rake installed on system not in project for run inside project use bundle exec rake routes
If I drop in to irb and do require 'atom' I can successfully include the gem but if I try to include it in my controller in rails I get no such file to load -- atom when I visit the page in the browser. What's going on here?
Here's the complete stack trace:
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
D:/Build/Contactly/app/controllers/contacts_controller.rb:3
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:380:in `load_without_new_constant_marking'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:380:in `load_file'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:379:in `load_file'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:259:in `require_or_load'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:425:in `load_missing_constant'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in `const_missing'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:361:in `constantize'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:360:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:360:in `constantize'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/inflections.rb:162:in `constantize'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:443:in `recognize'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:436:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:87:in `dispatch'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:121:in `_call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:9:in `cache'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:28:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/params_parser.rb:15:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/cookie_store.rb:93:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/failsafe.rb:26:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `synchronize'
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:114:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/reloader.rb:34:in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:108:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/rack/static.rb:31:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/rack/log_tailer.rb:17:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/content_length.rb:13:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/webrick.rb:50:in `service'
C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/Ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/Ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/Ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/Ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/webrick.rb:14:in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:111
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3
irb is the interactive Ruby shell which is not rails. when you do gem install you are making it available for your installed version of Ruby, however Rails is slightly different. Rails only interacts with the gems you have listed in your Gemfile. Assuming you are using Rails 3, you would edit your Gemfile to include to the gem
gem 'atom'
save the file and then run
bundle install
then, once you run rails s that gem is available to your rails application. For future note, if you want to try out how something will work in a rails context, instead of invoking irb, invoke rails console or ./script/rails console (depending on which version of rails you are using).
Did you include it in your gemfile?
Is anyone else seeing unpredictable results using Flex 3 with Rails 2.3.3 and RubyAMF 1.6.5?
I had to revert back to Rails 2.3.2. Anyone have a clue what's going on?
Nevermind...I found a few issues with name-spacing in my code. Once fixed, RubyAMF 1.6.5 worked fine with Rails 2.3.3.
After further exploration, I see to have run into the issue again. Looks like RubyAMF is choking on a serialization. Any clues on how/what to dig deeper into this issue?
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.include?
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.3/lib/active_record/attribute_methods.rb:142:in `create_time_zone_conversion_attribute?'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.3/lib/active_record/attribute_methods.rb:75:in `define_attribute_methods'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.3/lib/active_record/attribute_methods.rb:71:in `each'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.3/lib/active_record/attribute_methods.rb:71:in `define_attribute_methods'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.3/lib/active_record/attribute_methods.rb:242:in `method_missing'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.3/lib/active_record/base.rb:2826:in `hash'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.3/lib/active_record/associations/association_proxy.rb:221:in `send'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.3/lib/active_record/associations/association_proxy.rb:221:in `method_missing'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.3/lib/active_record/associations/association_collection.rb:370:in `method_missing'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/io/amf_serializer.rb:366:in `[]='
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/io/amf_serializer.rb:366:in `store_object'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/io/amf_serializer.rb:260:in `write_amf3_array'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/io/amf_serializer.rb:151:in `write_amf3'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/io/amf_serializer.rb:242:in `write_amf3_object'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/io/amf_serializer.rb:236:in `each'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/io/amf_serializer.rb:236:in `write_amf3_object'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/io/amf_serializer.rb:154:in `write_amf3'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/io/amf_serializer.rb:78:in `write'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/io/amf_serializer.rb:70:in `run'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/io/amf_serializer.rb:56:in `upto'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/io/amf_serializer.rb:56:in `run'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/app/filters.rb:91:in `run'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:10:in `realtime'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/app/filters.rb:91:in `run'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/app/filters.rb:12:in `run'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/app/filters.rb:11:in `each'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/app/filters.rb:11:in `run'
/Users/los/working/test-repo/msnmgmt-backend/vendor/plugins/rubyamf/app/rails_gateway.rb:28:in `service'
/Users/los/working/test-repo/msnmgmt-backend/app/controllers/rubyamf_controller.rb:16:in `gateway'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:1327:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:1327:in `perform_action_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:617:in `call_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:10:in `realtime'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/flash.rb:146:in `perform_action'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:527:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:527:in `process_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:606:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:391:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:386:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/routing/route_set.rb:434:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:88:in `dispatch'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:111:in `_call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:82:in `initialize'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:29:in `call'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:29:in `call'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:9:in `cache'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:28:in `call'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/head.rb:9:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/params_parser.rb:15:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/session/cookie_store.rb:93:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/reloader.rb:29:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/failsafe.rb:26:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:106:in `call'
/Library/Ruby/Gems/1.8/gems/rails-2.3.3/lib/rails/rack/static.rb:31:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:46:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in `each'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in `call'
/Library/Ruby/Gems/1.8/gems/rails-2.3.3/lib/rails/rack/log_tailer.rb:17:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb:13:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/chunked.rb:15:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/handler/mongrel.rb:61:in `process'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/handler/mongrel.rb:34:in `run'
/Library/Ruby/Gems/1.8/gems/rails-2.3.3/lib/commands/server.rb:111
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3