Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError after 'include WashOut::SOAP' in controller #100

Closed
maxim198307 opened this issue Jul 1, 2013 · 2 comments
Closed

NoMethodError after 'include WashOut::SOAP' in controller #100

maxim198307 opened this issue Jul 1, 2013 · 2 comments

Comments

@maxim198307
Copy link

Hello,
i cannot get this gem to work, after adding it in gem file and then including it in one of controllers with 'include WashOut::SOAP' i get 500 Internal Server Errorr with:
NoMethodError (undefined method values_at' for nil:NilClass): wash_out (0.7.1) lib/wash_out/dispatcher.rb:51:in_map_soap_parameters'

Perhaps there is something additional set up work need to be done before using it apart adding it to gem file and including it in controller? i'm a newb with rails, so excuse me if there is an obvious solution to this which i didn't get.

I'm using ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]

Here is my gemfile contents:
source 'https://rubygems.org'
gem 'rails', '3.2.9'
gem 'sqlite3'
gem 'bootstrap-sass', '2.1'
gem 'bcrypt-ruby', '3.0.1'
gem 'faker', '1.0.1'
gem 'will_paginate', '3.0.3'
gem 'bootstrap-will_paginate', '0.0.6'
gem 'rack-mini-profiler'
gem 'savon'
gem 'wash_out'
gem 'jquery-rails', '2.0.2'
gem 'therubyracer'

group :development, :test do
gem 'rspec-rails'
gem 'annotate'
end

group :assets do
gem 'sass-rails', '> 3.2.5'
gem 'coffee-rails', '
> 3.2.2'
gem 'uglifier', '1.2.3'
end

group :test do
gem 'capybara', '1.1.2'
gem 'factory_girl_rails', '4.1.0'
end

Thanks for your attention.

@inossidabile
Copy link
Owner

You can only get such error within request. What kind of request is it? You are not telling the most important part :)

@maxim198307
Copy link
Author

Oooh, i got it:) I tried to include wash_out in controller which had actions ( added wash_out :my_controller to routes.rb as well...) and tried to access it with GET request in browser. Created separate controller and now all is working!
Thanks a lot, your question pointed me the direction where to think!:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants