Ruby soundcloud Gem : uninitialized constant SoundCloud (NameError) - api

I installed the SoundCloud ruby gem but when I tried running the example 'Print links of the 10 hottest tracks' on this page
https://github.com/soundcloud/soundcloud-ruby
I kept getting an error message "uninitialized constant SoundCloud (NameError)"
I did follow the instruction on the example, registered a client and got my client_id (not sure how to get the access token, which is not required in this example)
I followed the instruction on http://docs.rubygems.org/read/chapter/3 to add require 'soundcloud' to the example code but i still keep getting the same error message.
I am using OSX terminal.
sorry i'm new to ruby and soundcloud API so my question might be very entry level.

The README showed currently on GitHub doesn't match the version 0.3.1 of the gem that you have probably installed.
Changing SoundCloud to Soundcloud should fix your problems.

Please update to version 0.3.2. The README documents the latest interface.

Related

Rails getting error when generating shopify app

I'm getting an error when generating shopify app using rails. Screenshot is shown below:
Can anyone tell me what is going wrong?
You have probably added the shopify gem to the gems file.
all you need to do is to run
bundle install
so the app will install and use the new gem

Spree-social and omniauth

I am new to ruby and have spree-ecommerce application on spree .70 . I am trying to add Facebook Authentication using spree-social. Install request fails , when I follow exact steps. Here is what I get:
Could not load 'omniauth'. Please ensure you have the omniauth gem >= 1.0.0 installed and listed in your Gemfile.
I see same error even after running gem install omniauth
I had the same problem but I resolved it by watching the video tutorial at this address http://railscasts.com/episodes/241-simple-omniauth. It shows an introduction to OmniAuth.

Routing Error uninitialized constant Devise::Controllers::InternalHelpers

I have a rails 3.1 app. I am trying to access the sign in page. I previously had this working and all of a sudden I am getting the error that I have given in the title. I have also tried googling and looking at other stackoverflow questions and was wondering is there anyone out there who may have experienced this same similar problem? And if so how do you overcome.
I have checked my terminal and found that I recieve the following:
ActionController::RoutingError (uninitialized constant Devise::Controllers::InternalHelpers):
app/controllers/devise/sessions_controller.rb:3:in `<class:SessionsController>'
app/controllers/devise/sessions_controller.rb:1:in `<top (required)>'
It points that the error is in app/controllers however I cannot see this folder in the app folder as I installed devise as a gem. How could I possibly access the controllers.
Solved it myself it appears there was a compatible issue so I used devise 1.5.3

Gem for push notifications for Android and iOS

I am working on a project in Ruby 1.9.2 and Rails 3 and I am looking for a gem to send push notifications to my iOS app and to my Android app.
I have found one for iOS jtv-apns gem but as I have asked in this question, I haven't been able to make it work and I haven't received any answers yet.
I have also found apn_on_rails but as the instructions are not for rails 3, I don't know if it is compatible.
For android, all I have found is c2dm_on_rails so far, but only works with ruby 1.8 and rails 2.
As suggested in this question, Urban ship is not an option for me right now. I would like to implement it myself or find a gem to help me do that.
Do you know any gem I can use for ruby 1.9 and rails 3 or a good tutorial I can follow?
I ended up using apn_on_rails the rails 3 branch. You can find a really good tutorial here
And for android I used speed_c2dm
Use Prowl iOS client and
prowler gem
http://www.prowlapp.com
If someone knows a better solution that is up2date please post as comment!

rails-geocoder environmental problem in Rails 3 app

I'm working with Alex Reisner's geocoder gem on a Rails 3 app (3.0.3) because I'm concerned about GeoKit's shakey Rails 3 compatibility. Alex's gem looked perfect for my application so I started using it and had it working flawlessly last night on my Macbook. I pushed the app to Github when I got it running.
Today, I did a git clone of the app on a desktop Mac. Same version of Ruby, Rails and identical source and Gemfile. This time geocoder is throwing this exception:
NameError (uninitialized constant Geocoder::Net):
app/controllers/restaurants_controller.rb:16:in `create'
My models use after_validation :fetch_coordinates to geocode the model upon save.
Has anyone noticed any other dependencies outside the bundle that could cause this? I like the way Alex put this one together but may give geokit-rails3 a try even though it's an unfinished port.
I just released gem version 0.9.7 which should solve this problem.