ruby on rails 3.2 - Uninitialized constant error when connecting to a service -


i have service running on 'http://localhost:4567/order_summary' when go address shows me json representation of want.

now in rail application created controller simple start working on calling service , working json:

class pharmacycontroller < applicationcontroller   def index     result = typhoeus::request::get('http://localhost:4567/order_summary')     @code = result.code   end end 

but when go http://localhost:3000/pharmacy/ address error of

nameerror in pharmacycontroller#index  uninitialized constant pharmacycontroller::typhoeus 

what should initilaize based on error?

the issue can see might not have typhoeus in gemfile or didn't require require 'typhoeus'

does help?


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -