Rails - invalid byte sequence in US-ASCII - ruby-on-rails-3

I'm losing all my hair on this:
My rails server starts ok, but whichever the request to it is made (except assets and public content), I get this error :
ArgumentError in HomeController#index
invalid byte sequence in US-ASCII
with this framework trace (no application trace)
better_errors (0.9.0) lib/better_errors/stack_frame.rb:19:in `from_exception'
better_errors (0.9.0) lib/better_errors/error_page.rb:52:in `backtrace_frames'
better_errors (0.9.0) lib/better_errors/middleware.rb:114:in `log_exception'
better_errors (0.9.0) lib/better_errors/middleware.rb:87:in `rescue in protected_app_call'
better_errors (0.9.0) lib/better_errors/middleware.rb:84:in `protected_app_call'
better_errors (0.9.0) lib/better_errors/middleware.rb:79:in `better_errors_call'
better_errors (0.9.0) lib/better_errors/middleware.rb:56:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.5) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.5) lib/rack/lock.rb:15:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
railties (3.2.13) lib/rails/engine.rb:479:in `call'
railties (3.2.13) lib/rails/application.rb:223:in `call'
rack (1.4.5) lib/rack/content_length.rb:14:in `call'
railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
/home/augustin/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/home/augustin/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/home/augustin/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
My team works on windows and it works fine on their platform, but the bug occurs on my computer in ubuntu. Everything worked fine until now, if I rollback to my latest commit it works again, so the error is in the merge.
Questions are:
How can I debug this issue since it's not really verbose?
What does the error actually means? That Ascii is expected and that's not what we have OR that ascii is found and that's not what's expected?
Is the error more likely to be in a gem, in the application controller?
Is there a way to filter all special characters to have an idea where it comes from?
What other info would be usefull to help me debug this?
Readings:
When run bundle get invalid byte sequence in US-ASCII : both solutions offered didn't work for me
is there a way to highlight all the special accent characters in sublime text or any other text editor? : many results, but nothing especially weird
Attached:
Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.13'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
# Database
gem 'pg'
# Database Init
gem 'seed_dump'
# gem "seedbank"
# gem 'active_model_serializers'
# HAML
gem 'haml', '4.0.3'
gem 'html2haml'
# Front-end
gem 'jquery-rails'
gem 'bootstrap-sass', :git => 'git://github.com/thomas-mcdonald/bootstrap-sass.git', :branch => '3'
# gem 'font-awesome-sass-rails'
gem 'font-awesome-rails'
gem 'bootstrap-datepicker-rails'
gem 'jquery-tokeninput-rails' # tag and autocomplete for conversation
# Shared mustache templates for rails 3.
gem 'smt_rails'
# Attachements
gem 'paperclip', '3.4.2'
# Share on Social Network
gem 'social-share-button'
# Jquery Upload File
# gem "jquery.fileupload-rails"
# Map
gem 'mapbox-rails', :git => 'https://github.com/aug-riedinger/mapbox-rails.git'
gem 'leaflet-markercluster-rails'
# Authentication
gem 'bcrypt-ruby', '3.0.1', :require => 'bcrypt'
gem 'devise'
gem 'omniauth'
gem 'omniauth-facebook', "1.4.0"
gem 'oauth2'
gem 'fb_graph'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'coffee-script-source', '1.5.0'
gem 'uglifier', '>= 1.0.3'
end
group :development, :test do
gem 'better_errors'
gem 'binding_of_caller'
end
platforms :ruby do
group :development, :test do
gem 'railroady'
end
group :production do
gem 'aws-sdk'
gem 'unicorn'
gem 'newrelic_rpm'
end
end
# Messaging - Notifications
gem 'simple_form'
gem 'mailboxer'
gem 'pusher'
gem 'amistad'
# Pdf generation
gem 'prawn'
gem 'prawnto'
# Payments
gem 'activemerchant'
# SEO
gem 'dynamic_sitemaps'
gem 'metamagic'
# Static files
gem 'markdown-rails'
Thanks for helping a desesperate guy ...

So, I finally found the solution by checking out every commit in the history (git log), testing, and finally making a git diff <commit_hash> <previous_commit_hash> to see what changed.
I had non-ASCII char in a helper (loaded on every call apparently):
def group_currency(group)
currency = group.currency
case currency
when 'EUR'
haml_tag "€"
when 'USD'
haml_tag "$"
when 'GBP'
haml_tag "£"
end
end
So adding this at the beggining of the file solves it:
#encoding: utf-8
module GroupsHelper
...
But what I find more questionning is why can't Rails locate and report in the log the file that rises the problem...
I created an issue on Rails for this: https://github.com/rails/rails/issues/12041

Related

RubyMine bundle/bundler configuration error

I am on windows and using RubyMine to develop an app. My 2-year old was found banging on the keyboard when I had stepped away for a sec. She did something to the environment that I can't figure out. I'm getting the following error when I try to run bundle install or bundle update:
C:\RailsInstaller\Ruby1.9.3\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:\RailsInstaller\Ruby1.9.3\bin/bundle update
C:/RailsInstaller/Ruby1.9.3/bin/bundle:23:in `load': cannot load such file -- C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.4.0.rc.1/bin/bundle (LoadError)
from C:/RailsInstaller/Ruby1.9.3/bin/bundle:23:in `<top (required)>'
from -e:1:in `load'
from -e:1:in `<main>'
Process finished with exit code 1
My gemfile looks like this:
source 'https://rubygems.org'
gem 'rails', '3.2.11'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'jquery-rails'
gem 'bcrypt-ruby', '~> 3.0.0'
gem 'paperclip'
gem 'wicked' #For handling *.pdf documents, use wicked_pdf
gem 'public_activity'
gem 'thin'
gem 'strong_parameters'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
group :development, :test do
gem 'rspec-rails'
gem 'sqlite3'
gem 'autotest'
gem 'autotest-rails-pure'
end
group :development do
gem 'annotate'
end
group :production do
gem 'pg'
end
bcrypt-ruby is set to gem 'bcrypt-ruby', '~> 3.0.0' to handle another error (duplicate version load error).
My gem environment is this:
RUBYGEMS VERSION: 1.8.24
RUBY VERSION: 1.9.3 (2013-02-22 patchlevel 392) [i386-mingw32]
INSTALLATION DIRECTORY: C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1
RUBY EXECUTABLE: C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe
EXECUTABLE DIRECTORY: C:/RailsInstaller/Ruby1.9.3/bin
RUBYGEMS PLATFORMS:
ruby
x86-mingw32
GEM PATHS:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1
C:/Documents and Settings/Me/.gem/ruby/1.9.1
GEM CONFIGURATION:
:update_sources => true
:verbose => true
:benchmark => false
:backtrace => false
:bulk_threshold => 1000
REMOTE SOURCES:
http://rubygems.org/
----------------------
IDE: JetBrains RubyMine 5.4.3.2.1, build #RM-129.861
OS: Windows XP 5.1[x86]
Java: 1.7.0_10-b18
RubyMine SDK Environment:
Sdk: ruby-1.9.3-p392
Sdk Version: ver.1.9.3p392 p392
Ruby Interpreter: C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe
RVM Sdk: no
Sdk Language Level: 1.9
Sdk Load Path:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1
C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/i386-msvcrt
C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby
C:/RailsInstaller/Ruby1.9.3/lib/ruby/vendor_ruby/1.9.1
C:/RailsInstaller/Ruby1.9.3/lib/ruby/vendor_ruby/1.9.1/i386-msvcrt
C:/RailsInstaller/Ruby1.9.3/lib/ruby/vendor_ruby
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/i386-mingw32
C:/Program Files/RubyMine 5.4.3.2.1/rubystubs193
Sdk Gem paths:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems
C:/Documents and Settings/Kraig/.gem/ruby/1.9.1/gems
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems
Gems used for 'ballast':
diff-lcs (1.2.4)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/diff-lcs-1.2.4
rack-test (0.6.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-test-0.6.2
coffee-rails (3.2.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/coffee-rails-3.2.2
erubis (2.7.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/erubis-2.7.0
uglifier (2.2.1)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/uglifier-2.2.1
actionmailer (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionmailer-3.2.11
pg (0.17.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/pg-0.17.0-x86-mingw32
arel (3.0.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/arel-3.0.2
builder (3.0.4)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/builder-3.0.4
autotest-rails-pure (4.1.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/autotest-rails-pure-4.1.2
public_activity (1.4.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/public_activity-1.4.0
thin (1.5.1)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thin-1.5.1
rails (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rails-3.2.11
eventmachine (1.0.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.3-x86-mingw32
paperclip (3.5.1)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/paperclip-3.5.1
mail (2.4.4)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mail-2.4.4
json (1.8.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/json-1.8.0
daemons (1.1.9)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/daemons-1.1.9
climate_control (0.0.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/climate_control-0.0.3
activesupport (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11
journey (1.0.4)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/journey-1.0.4
rake (10.1.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.1.0
coffee-script (2.2.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0
jquery-rails (3.0.4)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jquery-rails-3.0.4
rdoc (3.12.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rdoc-3.12.2
railties (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.11
rspec-core (2.14.5)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.14.5
multi_json (1.8.1)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/multi_json-1.8.1
ZenTest (4.8.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ZenTest-4.8.3
rspec-mocks (2.14.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-mocks-2.14.3
execjs (2.0.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/execjs-2.0.2
thor (0.18.1)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.18.1
sprockets (2.2.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sprockets-2.2.2
wicked (1.0.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/wicked-1.0.0
strong_parameters (0.2.1)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/strong_parameters-0.2.1
polyglot (0.3.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/polyglot-0.3.3
tilt (1.4.1)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/tilt-1.4.1
annotate (2.5.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/annotate-2.5.0
activeresource (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activeresource-3.2.11
autotest (4.4.6)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/autotest-4.4.6
bcrypt-ruby (3.1.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bcrypt-ruby-3.1.2-x86-mingw32
mime-types (1.25)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mime-types-1.25
i18n (0.6.5)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/i18n-0.6.5
activerecord (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-3.2.11
rack-ssl (1.3.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-ssl-1.3.3
rspec-rails (2.14.0)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-rails-2.14.0
activemodel (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activemodel-3.2.11
sass-rails (3.2.6)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-rails-3.2.6
rack (1.4.5)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.5
treetop (1.4.15)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/treetop-1.4.15
sass (3.2.12)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.2.12
rack-cache (1.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-cache-1.2
sqlite3 (1.3.8)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.8-x86-mingw32
hike (1.2.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/hike-1.2.3
tzinfo (0.3.37)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/tzinfo-0.3.37
actionpack (3.2.11)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11
rspec-expectations (2.14.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-expectations-2.14.3
coffee-script-source (1.6.3)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/coffee-script-source-1.6.3
cocaine (0.5.2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/cocaine-0.5.2
bundler (1.3.4)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.4
I have tried to manually update the gem in question, revert back to an older version, etc. I can't figure out why the error is occuring. rails s won't work until i get this debugged.
Any ideas?
Does the file C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.4.0.rc.1/bin/bundle exist?
Try uninstalling and then reinstalling the bundler gem.

Heroku: Could not find libv8-3.15.11.1 in any of the sources

I know there are a lot of these questions on Github (I've looked through all of them), but none of the answers have worked for me.
I am getting the error "Could not find libv8-3.15.11.1 in any of the sources" when I try "git push heroku master." I specify the version of libv8 in my Gemfile (with gem "libv8", "~> 3.11.8.13"), and I think this is reflected in my Gemfile.lock ("libv8 (3.11.8.13)"). I don't understand why it's looking for version 3.15.11.1 when I've specified 3.11.8.13.
I made sure all my changes to the Gemfiles were committed (when I do "git status", I get "nothing to commit (working directory clean)."
I also tried removing heroku and re-adding it (with "git remote rm heroku" and then "git push heroku master").
Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.8'
group :development do
gem 'sqlite3'
end
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'json'
gem 'rmagick'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
gem "twitter-bootstrap-rails"
gem "less-rails"
gem 'jquery-fileupload-rails'
end
gem 'jquery-rails'
gem 'activeadmin'
gem "meta_search", '>= 1.1.0.pre'
gem 'friendly_id'
gem 'gon'
gem 'formtastic'
gem 'js-routes'
gem "therubyracer"
gem "libv8", "~> 3.11.8.13"
gem 'carrierwave'
gem 'ckeditor_rails'
gem 'font-awesome-rails'
group :production do
gem 'pg', '0.12.2'
end
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug'
Gemfile.lock
GEM
remote: https://rubygems.org/
specs:
actionmailer (3.2.8)
actionpack (= 3.2.8)
mail (~> 2.4.4)
actionpack (3.2.8)
activemodel (= 3.2.8)
activesupport (= 3.2.8)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.4)
rack (~> 1.4.0)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.1.3)
activeadmin (0.5.1)
arbre (>= 1.0.1)
bourbon (>= 1.0.0)
devise (>= 1.1.2)
fastercsv
formtastic (>= 2.0.0)
inherited_resources (>= 1.3.1)
jquery-rails (>= 1.0.0)
kaminari (>= 0.13.0)
meta_search (>= 0.9.2)
rails (>= 3.0.0)
sass (>= 3.1.0)
activemodel (3.2.8)
activesupport (= 3.2.8)
builder (~> 3.0.0)
activerecord (3.2.8)
activemodel (= 3.2.8)
activesupport (= 3.2.8)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.8)
activemodel (= 3.2.8)
activesupport (= 3.2.8)
activesupport (3.2.8)
i18n (~> 0.6)
multi_json (~> 1.0)
arbre (1.0.1)
activesupport (>= 3.0.0)
arel (3.0.2)
bcrypt-ruby (3.0.1)
bourbon (3.1.1)
sass (>= 3.2.0)
thor
builder (3.0.4)
carrierwave (0.8.0)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
ckeditor_rails (4.0.1.1)
railties (>= 3.0)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.4.0)
commonjs (0.2.6)
devise (2.2.3)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.1)
railties (~> 3.1)
warden (~> 1.2.1)
erubis (2.7.0)
execjs (1.4.0)
multi_json (~> 1.0)
fastercsv (1.5.5)
font-awesome-rails (3.0.2.0)
railties (>= 3.1)
formtastic (2.2.1)
actionpack (>= 3.0)
friendly_id (4.0.9)
gon (4.0.2)
actionpack (>= 2.3.0)
json
has_scope (0.5.1)
hike (1.2.1)
i18n (0.6.1)
inherited_resources (1.3.1)
has_scope (~> 0.5.0)
responders (~> 0.6)
journey (1.0.4)
jquery-fileupload-rails (0.4.1)
actionpack (>= 3.1)
railties (>= 3.1)
jquery-rails (2.2.1)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
js-routes (0.8.7)
rails (>= 3.2)
json (1.7.7)
kaminari (0.14.1)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
less (2.2.2)
commonjs (~> 0.2.6)
less-rails (2.2.6)
actionpack (>= 3.1)
less (~> 2.2.0)
libv8 (3.11.8.13)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
meta_search (1.1.3)
actionpack (~> 3.1)
activerecord (~> 3.1)
activesupport (~> 3.1)
polyamorous (~> 0.5.0)
mime-types (1.21)
multi_json (1.6.1)
orm_adapter (0.4.0)
pg (0.12.2)
polyamorous (0.5.0)
activerecord (~> 3.0)
polyglot (0.3.3)
rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (3.2.8)
actionmailer (= 3.2.8)
actionpack (= 3.2.8)
activerecord (= 3.2.8)
activeresource (= 3.2.8)
activesupport (= 3.2.8)
bundler (~> 1.0)
railties (= 3.2.8)
railties (3.2.8)
actionpack (= 3.2.8)
activesupport (= 3.2.8)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (10.0.3)
rdoc (3.12.1)
json (~> 1.4)
ref (1.0.2)
responders (0.9.3)
railties (~> 3.1)
rmagick (2.13.2)
sass (3.2.5)
sass-rails (3.2.6)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.7)
therubyracer (0.11.3)
libv8 (~> 3.11.8.12)
ref
thor (0.17.0)
tilt (1.3.3)
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
twitter-bootstrap-rails (2.2.4)
actionpack (>= 3.1)
execjs
railties (>= 3.1)
tzinfo (0.3.35)
uglifier (1.3.0)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
warden (1.2.1)
rack (>= 1.0)
PLATFORMS
ruby
DEPENDENCIES
activeadmin
carrierwave
ckeditor_rails
coffee-rails (~> 3.2.1)
font-awesome-rails
formtastic
friendly_id
gon
jquery-fileupload-rails
jquery-rails
js-routes
json
less-rails
libv8 (~> 3.11.8.13)
meta_search (>= 1.1.0.pre)
pg (= 0.12.2)
rails (= 3.2.8)
rmagick
sass-rails (~> 3.2.3)
sqlite3
therubyracer
twitter-bootstrap-rails
uglifier (>= 1.0.3)
According to this page:
https://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar
"therubyracer
If you were previously using therubyracer or therubyracer-heroku, these gems are no longer required and strongly discouraged as these gems use a very large amount of memory."
Consequently I removed these from my test application. I then installed node.js on by ubuntu local machine and runs fine as it does on heroku.
See this question too:
Rails - Could not find a JavaScript runtime?

can not load omniauth in rails application

I am following rails 3 in action's source code,when I run the app,I get the following error:
[DEVISE] Devise.use_salt_as_remember_token is deprecated and has no effect. Please remove it.
Could not load 'omniauth'. Please ensure you have the omniauth gem >= 1.0.0 installed and listed in your Gemfile.
Exiting
This is the gem file:
gem 'rails', '3.2.8'
# gem 'arel'
gem 'rack'
gem 'sprockets'
gem 'sqlite3'
gem 'sass', '~> 3.1.0.alpha'
gem 'coffee-script'
gem 'dynamic_form'
gem 'devise'
gem 'cancan'
gem 'paperclip'
gem 'searcher'
gem 'kaminari'
gem 'jquery-rails'
gem "oa-oauth", :require => "omniauth/oauth"
gem "delayed_job"
# gem "forem"
gem "ticketee-forem"
gem 'sinatra'
group :test, :development do
gem 'gmail'
gem 'rspec-rails', '~> 2.6.1.beta1'
end
group :test do
gem 'rack-test'
gem 'cucumber-rails'
gem 'capybara'
gem 'database_cleaner'
gem 'factory_girl'
gem 'email_spec'
gem 'launchy'
end
group :production do
gem 'pg'
end
When I run bundle check it will success.
And my gem list:
*** LOCAL GEMS ***
actionmailer (3.2.8)
actionpack (3.2.8)
activemodel (3.2.8)
activerecord (3.2.8)
activeresource (3.2.8)
activesupport (3.2.8)
addressable (2.2.8)
arel (3.0.2)
bcrypt-ruby (3.0.1)
builder (3.0.2)
bundler (1.1.4)
cancan (1.6.8)
capybara (1.1.2)
childprocess (0.3.5)
cocaine (0.3.0)
coffee-script (2.2.0)
coffee-script-source (1.3.3)
cucumber (1.0.6)
cucumber-rails (1.0.2)
database_cleaner (0.8.0)
delayed_job (3.0.3)
devise (2.1.2)
diff-lcs (1.1.3)
dynamic_form (1.1.4)
email_spec (1.2.1)
erubis (2.7.0)
execjs (1.4.0)
factory_girl (4.0.0)
faraday (0.6.1)
ffi (1.1.5)
gherkin (2.4.21)
gmail (0.4.0)
gmail_xoauth (0.3.2)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (2.1.2)
json (1.7.5)
kaminari (0.14.0)
launchy (2.1.0)
libwebsocket (0.1.5)
mail (2.4.4)
mime (0.1)
mime-types (1.19)
multi_json (1.3.6)
multipart-post (1.1.5)
mysql2 (0.3.11)
nokogiri (1.4.7)
oa-core (0.2.4)
oa-oauth (0.2.4)
oauth (0.4.7)
oauth2 (0.4.1)
orm_adapter (0.4.0)
paperclip (3.2.0)
pg (0.14.1)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack-protection (1.2.0)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.8)
railties (3.2.8)
rake (0.9.2.2)
rdoc (3.12)
rspec (2.6.0)
rspec-core (2.6.4)
rspec-expectations (2.6.0)
rspec-mocks (2.6.0)
rspec-rails (2.6.1)
rubygems-bundler (1.0.2)
rubyzip (0.9.9)
rvm (1.11.3.3)
sass (3.1.21)
searcher (0.0.6)
selenium-webdriver (2.25.0)
sinatra (1.3.3)
sprockets (2.1.3)
sqlite3 (1.3.6)
term-ansicolor (1.0.7)
thor (0.16.0)
ticketee-forem (0.0.1)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.33)
warden (1.2.1)
xpath (0.1.4)
As you can see, I do have the gem oa-oauth (0.2.4) installed.
Why does it give me this error?
oa-oauth is not the omniauth gem ... It's the oauth extension for omniauth ... Add the omniauth gem gem 'omniauth', just like the error message tells you ...

Bundle install not finding gem in gem list

I am trying to add devise to my application and gem install works, but everytime I run bundle install, it does not find devise in my gemlist. I have tried including the git link and using a specific version, but it still does not find it in my gemfile.
Terminal
$bundle install
$Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.3.6)
Using activesupport (3.2.5)
Using builder (3.0.0)
Using activemodel (3.2.5)
Using erubis (2.7.0)
Using journey (1.0.3)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.5)
Using mime-types (1.18)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.5)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.5)
Using activeresource (3.2.5)
Using coffee-script-source (1.3.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.7.3)
Using rdoc (3.12)
Using thor (0.15.2)
Using railties (3.2.5)
Using coffee-rails (3.2.2)
Using jquery-rails (2.0.2)
Using bundler (1.1.4)
Using rails (3.2.5)
Using sass (3.1.19)
Using sass-rails (3.2.5)
Using sqlite3 (1.3.6)
Using uglifier (1.2.4)
Your bundle is complete! Usebundle show [gemname]to see where a bundled gem is installed.
Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.5'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
gem 'devise'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'

how to make rails 3.0 default on mac?

Here are my gems when I type in gem list in the terminal:
* LOCAL GEMS *
abstract (1.0.0)
actionmailer (3.0.10)
actionpack (3.0.10)
activemodel (3.0.10)
activerecord (3.0.10)
activeresource (3.0.10)
activesupport (3.0.10)
arel (2.0.10)
builder (2.1.2)
bundler (1.0.18)
erubis (2.6.6)
i18n (0.5.0)
mail (2.2.19)
mime-types (1.16)
minitest (1.6.0)
mysql2 (0.3.7)
polyglot (0.3.2)
rack (1.2.3)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.10)
railties (3.0.10)
rake (0.8.7)
rdoc (3.9.3, 2.5.8)
rubygems-update (1.8.9)
thor (0.14.6)
treetop (1.4.10)
tzinfo (0.3.29)
Ruby -v: ruby 1.9.2
How come when I type rails -v it gives me: Rails 1.2.6? I need the 3.0 to be the default.
Try running:
gem uninstall rails -v 1.2.6
and see if that works. You can also look into RVM there is a RailsCast http://railscasts.com/episodes/200-rails-3-beta-and-rvm
It also may be necissary to use sudo on a mac like so:
sudo gem uninstall rails