Rails getting error when generating shopify app - shopify

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

Related

Why am I getting a `root path` error after creating Shopify App via Shopify CLI?

I am trying to get started with the Shopify CLI and am having problems getting a vanilla app installed (i.e. haven't written any code yet, only trying to get things to connect up properly).
My Setup:
Rails 6.1.1
Ruby 2.7.2
Shopify CLI installed via Homebrew
Actions I've Taken:
I have used the shopify create, shopify serve, and shopify open commands to make a simple rails app.
When visiting the URL specified by the shopify open command, I get the following error:
undefined method 'root_path' for #<ActionDispatch::Routing::RoutesProxy:0x0000000124837528>
Screenshot:
enter image description here
Any ideas what is going wrong here?

Ruby soundcloud Gem : uninitialized constant SoundCloud (NameError)

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.

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.

Cannot Deploy App w/ Heroku - Rake::DSL Error

I'm using Rails v. 3.0.9 and have pushed the app to Heroku. When I view the custom Heroku domain I get the following message from Heroku:
"We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly."
I run heroku logs and don't seem to get any error messages. The only error I encounter with Heroku seems to be when I run heroku rake db:migrate with which I get the following in return:
rake aborted!
uninitialized constant Rake::DSL
Note: I'm new to Rails and to Heroku. I'm not quite understanding the difference between production and development environments. Do I need to be in production for Heroku to work? At the moment, I'm using localhost3000 to view my app. Thanks guys!
I have a blog post about it here:
http://codeglot.com/posts/13-you_have_already_activated_rake_0_9_2
There are two solutions. Use an older version of rake or require DSL.

Editing a gem definition on HEROKU (opentok)

quick question about Heroku. My app is using a gem called opentok. To function outside of a "sandbox" mode, the app requires changing an API link in a gem file called opentok.rb. I did that locally and the app works fine. however, when I deploy to heroku, the app does not work because heroku looks at my gem file and gets the unmodified gem lib of opentok which then runs my app on the heroku server in sandbox mode.
Is there a way I can access the opentok gem file (opentok.rb) on the heroku server and edit it with gvim from a console?
Thank you!!
Unpack the gem to your vendor directory, edit it as you require, then tell Bundler where to retrieve the gem from.
Command line:
gem unpack opentok-VERSION --target vendor/gems
Bundler:
gem 'opentok', :path => "vendor/gems/opentok-VERSION"
After you've done all this, do a bundle install, add the vendored Gem to your git repository, and push to heroku.
For the opentok gem, though, the api url can be passed directly as an option:
opentok = OpenTok::OpenTokSDK.new #api_key, #api_secret, :api_url => 'https://api.opentok.com/hl'
this feature is documented in the spec/opentok_spec.rb file. Look for:
it "should be possible to set the api url as an option" do
Thanks to Stijnster, the opentok gem creator, for pointing it out to me!