After i wrote a simple rails helloworld application and tried to start, the rails version=2.3.5, and disabled AR like:
config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
it throwed exception like below,
[FATAL 2011-04-29 17:46:43] merpro_client: /!\ FAILSAFE /!\ Fri Apr 29 17:46:43 +0800 2011
Status: 500 Internal Server Error
uninitialized constant ActionController::Rescue::ClassMethods::Response
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in `load_missing_constant'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:64:in `call_with_exception'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:90:in `dispatch'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:121:in `_call'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/params_parser.rb:15:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/cookie_store.rb:93:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/failsafe.rb:26:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `synchronize'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:114:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/reloader.rb:34:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:108:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/rack/static.rb:31:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/rack/log_tailer.rb:17:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/content_length.rb:13:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/webrick.rb:50:in `service'
C:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:82:in `start'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/webrick.rb:14:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:111
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3
Related
I have created a custom environment in rails 2.3(Fedena) by copying the file content under config/environment/production.rb and also added env key in database and other ymls. Db creation and migration was successful on this custom environment. But, I am unable to access site after server launch in custom environment. Starting server doesn't throw any error but while accessing site I receive an error
NoMethodError (undefined method `+' for nil:NilClass)
I am not getting this error on other environments.
The stack trace is below for the error:
/usr/local/rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/request.rb:332:in `subdomains'
/home/soarlogic/Documents/rails/fedena/vendor/plugins/subdomain-fu/lib/subdomain-fu.rb:132:in `current_subdomain'
/home/soarlogic/Documents/rails/fedena/vendor/plugins/subdomain-fu/lib/subdomain_fu/routing_extensions.rb:27:in `extract_request_environment'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:441:in `recognize'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:436:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:87:in `dispatch'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:121:in `_call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/params_parser.rb:15:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/rails/rack/metal.rb:47:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/session/abstract_store.rb:122:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:9:in `cache'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:28:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/failsafe.rb:26:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rack-1.0.1/lib/rack/lock.rb:11:in `synchronize'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:106:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/rails/rack/static.rb:31:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/rails/rack/log_tailer.rb:17:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/rails/rack/static.rb:31:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `each'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/rails/rack/log_tailer.rb:17:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rack-1.0.1/lib/rack/content_length.rb:13:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rack-1.0.1/lib/rack/handler/webrick.rb:50:in `service'
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rack-1.0.1/lib/rack/handler/webrick.rb:14:in `run'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/commands/server.rb:111
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3
I am getting the following issue while trying to share session between Rails 2 and Rails 4 Applications.
Status: 500 Internal Server Error
uninitialized constant ActiveSupport::HashWithIndifferentAccess
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:469:in `load_missing_constant'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:106:in `rake_original_const_missing'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rake-0.8.3/lib/rake.rb:2465:in `const_missing'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/activesupport-2.3.11/lib/active_support/message_verifier.rb:31:in `load'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/activesupport-2.3.11/lib/active_support/message_verifier.rb:31:in `verify'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.11/lib/action_controller/session/cookie_store.rb:171:in `unmarshal'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.11/lib/action_controller/session/cookie_store.rb:159:in `unpacked_cookie_data'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.11/lib/action_controller/session/abstract_store.rb:257:in `stale_session_check!'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.11/lib/action_controller/session/cookie_store.rb:156:in `unpacked_cookie_data'
/home/dinesh/tracoffshore/offshore/lib/rails_4_session_flash_backport/rails2/session_with_indifferent_access.rb:43:in `load_session'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.11/lib/action_controller/session/abstract_store.rb:132:in `send'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.11/lib/action_controller/session/abstract_store.rb:132:in `load!'
/home/dinesh/tracoffshore/offshore/lib/rails_4_session_flash_backport/rails2/session_with_indifferent_access.rb:14:in `[]'
/home/dinesh/tracoffshore/offshore/vendor/plugins/authlogic-connect/lib/authlogic_connect/callback_filter.rb:14:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rack-openid-1.3.1/lib/rack/openid.rb:98:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.11/lib/action_controller/string_coercion.rb:25:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rack-1.1.6/lib/rack/head.rb:9:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rack-1.1.6/lib/rack/methodoverride.rb:24:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.11/lib/action_controller/params_parser.rb:15:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.11/lib/action_controller/session/cookie_store.rb:99:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.11/lib/action_controller/failsafe.rb:26:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rack-1.1.6/lib/rack/lock.rb:11:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rack-1.1.6/lib/rack/lock.rb:11:in `synchronize'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rack-1.1.6/lib/rack/lock.rb:11:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:114:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.11/lib/action_controller/reloader.rb:34:in `run'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:108:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rails-2.3.11/lib/rails/rack/static.rb:31:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rack-1.1.6/lib/rack/urlmap.rb:47:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rack-1.1.6/lib/rack/urlmap.rb:41:in `each'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rack-1.1.6/lib/rack/urlmap.rb:41:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rails-2.3.11/lib/rails/rack/log_tailer.rb:17:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rack-1.1.6/lib/rack/content_length.rb:13:in `call'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rack-1.1.6/lib/rack/handler/webrick.rb:48:in `service'
/usr/share/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/share/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/share/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/share/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/share/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/share/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/share/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/share/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/share/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/share/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/webrick/server.rb:82:in `start'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rack-1.1.6/lib/rack/handler/webrick.rb:14:in `run'
/home/dinesh/.rvm/gems/ruby-1.8.7-head/gems/rails-2.3.11/lib/commands/server.rb:111
script/server:4:in `require'
script/server:4
I am taking help from the following 3 links.
https://www.theguild.nl/share-sessions-between-rails-2-and-rails-3-applications
https://medium.com/ruby-on-rails/3-steps-to-share-a-session-between-rails-3-and-rails-4-applications-9618766e6c2a#.1q15dg9a4.
http://webuild.envato.com/blog/upgrading-ruby-on-rails-at-production-scale/
Still not able to add ActiveSupport::HashWithIndifferentAccess class to my rails 2 app.
I'd strongly suggest against taking this approach as it's likely to lead to a ton of headaches like the above.
ActiveSupport::HashWithIndifferentAccess is not available in Rails versions prior to 3. You can likely shoehorn HashWithIndifferentAccess into Rails 2, but honestly I think it would be much more worthwhile to upgrade the legacy system.
It's also rather difficult to give much insight without the code that produced the error.
I wrote an api to upload a image file to server.
when I am upload without a file, it will be error
I tried to rescue it like this:
rescue_from Grape::Exceptions::ValidationErrors do |e|
error! e.message, 404
end
but it doesn't work.
Here is error message:
E, [2015-11-23T22:17:44.337050 #10646] ERROR -- : avatar is invalid (Grape::Exceptions::ValidationErrors)
remote_address: 127.0.0.1
token: Basic bGl4aWJveDpsaXhpYXBpMTIzNA==
method: POST
path: /api/v1/users/change_avatar.json
query: {"avatar"=>"undefined"}
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/endpoint.rb:249:in `block in run'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/activesupport-4.2.1/lib/active_support/notifications.rb:166:in `instrument'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/endpoint.rb:219:in `run'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/endpoint.rb:201:in `block in call!'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/middleware/base.rb:24:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/middleware/base.rb:24:in `call!'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/middleware/base.rb:18:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/middleware/base.rb:24:in `call!'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/middleware/base.rb:18:in `call'
/Users/macstore1/projects/lixibox/app/controllers/api/v1/api_error_handler.rb:9:in `call!'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/middleware/base.rb:18:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/middleware/error.rb:27:in `block in call!'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/middleware/error.rb:26:in `catch'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/middleware/error.rb:26:in `call!'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/middleware/base.rb:18:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-1.6.4/lib/rack/builder.rb:153:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/endpoint.rb:202:in `call!'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/endpoint.rb:190:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `block in call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `block in recognize'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75:in `optimized_each'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/api.rb:114:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/api.rb:44:in `call!'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/grape-0.13.0/lib/grape/api.rb:39:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:51:in `serve'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:43:in `block in serve'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in `each'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in `serve'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:819:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/remotipart-1.2.1/lib/remotipart/middleware.rb:27:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/middleware/flash.rb:260:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/middleware/cookies.rb:560:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/activerecord-4.2.1/lib/active_record/query_cache.rb:36:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:88:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:88:in `_run_callbacks'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_call_callbacks'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/middleware/reloader.rb:73:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/airbrake-4.3.0/lib/airbrake/rails/middleware.rb:13:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/better_errors-2.1.1/lib/better_errors/middleware.rb:84:in `protected_app_call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/better_errors-2.1.1/lib/better_errors/middleware.rb:79:in `better_errors_call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/better_errors-2.1.1/lib/better_errors/middleware.rb:57:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/web-console-2.2.1/lib/web_console/middleware.rb:39:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/railties-4.2.1/lib/rails/rack/logger.rb:38:in `call_app'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/railties-4.2.1/lib/rails/rack/logger.rb:20:in `block in call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:26:in `tagged'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `tagged'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/railties-4.2.1/lib/rails/rack/logger.rb:20:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/quiet_assets-1.1.0/lib/quiet_assets.rb:27:in `call_with_quiet_assets'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/middleware/request_id.rb:21:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/activesupport-4.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/actionpack-4.2.1/lib/action_dispatch/middleware/static.rb:113:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/airbrake-4.3.0/lib/airbrake/user_informer.rb:16:in `_call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/airbrake-4.3.0/lib/airbrake/user_informer.rb:12:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/railties-4.2.1/lib/rails/engine.rb:518:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/railties-4.2.1/lib/rails/application.rb:164:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/thin-1.6.3/lib/thin/connection.rb:86:in `block in pre_process'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/thin-1.6.3/lib/thin/connection.rb:84:in `catch'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/thin-1.6.3/lib/thin/connection.rb:84:in `pre_process'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/thin-1.6.3/lib/thin/connection.rb:53:in `process'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/thin-1.6.3/lib/thin/connection.rb:39:in `receive_data'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/thin-1.6.3/lib/thin/backends/base.rb:73:in `start'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/thin-1.6.3/lib/thin/server.rb:162:in `start'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-1.6.4/lib/rack/handler/thin.rb:19:in `run'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/rack-1.6.4/lib/rack/server.rb:286:in `start'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/railties-4.2.1/lib/rails/commands/server.rb:80:in `start'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:80:in `block in server'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `tap'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `server'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>'
/Users/macstore1/projects/lixibox/bin/rails:8:in `require'
/Users/macstore1/projects/lixibox/bin/rails:8:in `<top (required)>'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/spring-1.3.6/lib/spring/client/rails.rb:28:in `load'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/spring-1.3.6/lib/spring/client/rails.rb:28:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/spring-1.3.6/lib/spring/client/command.rb:7:in `call'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/spring-1.3.6/lib/spring/client.rb:26:in `run'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/spring-1.3.6/bin/spring:48:in `<top (required)>'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/spring-1.3.6/lib/spring/binstub.rb:11:in `load'
/Users/macstore1/.rvm/gems/ruby-2.1.6#lixibox/gems/spring-1.3.6/lib/spring/binstub.rb:11:in `<top (required)>'
/Users/macstore1/projects/lixibox/bin/spring:13:in `require'
/Users/macstore1/projects/lixibox/bin/spring:13:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Maybe there is an error in your API somewhere. The following should work (tested with Grape 0.13.0):
module Api
class API < Grape::API
rescue_from Grape::Exceptions::ValidationErrors do |e|
error! e.message, 404
end
resource '/avatars' do
params do
requires :avatar, type: Rack::Multipart::UploadedFile
end
post '/' do
{
filename: params.avatar.filename,
file_type: params.avatar.type
}
end
end
end
end
Also, if you define a rescue_from :all block, be sure to do it as the last block. By the way, Grape has a pretty good documentation.
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