Gemfile - A format for describing gem dependencies for Ruby programs. A Gemfile describes the gem dependencies required to execute associated Ruby code.
Gemfiles are a format for describing what gems are required by a Ruby program in order to successfully run.
I have an application that must be run in three different environments, called dev, beta and prod.
I created three different applications on heroku, so all the environments can be run at the same time, and I deploy the code from the right git repo…
I tried to bundle install, but here is what I got:
/home/mywebsite/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/version.rb:187:in `initialize': Malformed version number string = 1.0.3 (ArgumentError)
…
I'm trying to add spree_mail gem to my Spree project.
& when I run "bundle install"
I get this message:
Bundler could not find compatible versions for gem "devise":
In Gemfile:
spree_mail (= 0.40.0.4) ruby depends on
devise (= 1.2.rc)…
Here's what I put in:
$ rails generate scaffold Foobar content:string
Here's what I get:
/Users/nsbarr/.rvm/gems/ruby-1.9.3-p286@rails3tutorial2ndEd/gems/bundler-1.2.1/lib/bundler/runtime.rb:31:in `block in setup': You have already activated…
I am attempting to use the Yelp API in my Rails app but am having trouble doing so. I'm following the documentation here (https://github.com/Yelp/yelp-api/blob/master/v2/ruby/example.rb) but keep getting an error. Below is the code I'm using in…
Trying to run rails s and i get the error:
"Please install the sqlite3 adapter: gem install activerecord-sqlite3-adapter"
have tried bundle update and bundle install, seems to happen just after i push the app to heroku (did the same thing with…
I am trying to implement Social-stream with devise. when I am executing this rails generate social_stream:install. I am getting error Bundler could not find compatible versions for gem "devise":
In Gemfile:
social_stream (>= 0) ruby depends…
Just playing around with Ruby and have this very basic example
runner.rb:
require "bundler/setup"
include Mongo
mongo_client = MongoClient.new("localhost", 27017)
#mongo_client.database_names # lists all database…
I'm new to rails and I keep running into an error when I edit the Gemfile to the below. It can also be found under Listing 2.1 at this tutorial: http://ruby.railstutorial.org/chapters/a-demo-app#sec-planning_the_application
source…
I'm trudging through this deeply error-prone tutorial on Ruby on Rails located here: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book.
I've been working through a section about testing using rspec. Now, the instructions that this tutorial…
I'm working on a CentOS 6.3 Linux server with the Ruby version: 1.8.7 and the Gem version: 1.8.25
I'm trying to run the command: ruby script/rails server webrick -e production
It spits out this error:
=> Booting WEBrick
=> Rails 3.2.8 application…
This is our Gemfile.
Is the line require mongo redundant since gem 'mongo' is already included?
If not, what is the purpose of require mongo?
We're on Rails 3.
Thanks!
source 'http://rubygems.org'
require 'rubygems'
require 'mongo'
gem 'rails',…
Yesterday, everything worked fine. You can see my previous Gemfile here.
Then, I added some groups like you can see here.
Since then, I got this message:
Exiting
/Users/adrien/code/adserver/backoffice/config/initializers/airbrake.rb:1:in `
to load my rails 3.2.8 app on Heroku, I put in Gemfile:
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'pg'
end
and I gave 'bundle install', forgetting to give '-- without production' and now when I give 'rails s', the…