Skip to content

Instantly share code, notes, and snippets.

View stuartchaney's full-sized avatar
💥

Stuart Chaney stuartchaney

💥
View GitHub Profile
Unable to generate a Rails application:
ruby -rrubygems -rthread -e "gem 'rails', '3.0.0'; load Gem.bin_path('rails', 'rails', '3.0.0')" new rails_root
/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find rails (= 3.0.0) amongst [activesupport-3.1.1, airbrake-3.0.5, builder-3.0.0, multi_json-1.0.3] (Gem::LoadError)
from /usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:256:in `to_spec'
from /usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems.rb:1195:in `gem'
from -e:1
(RuntimeError)
./features/step_definitions/rails_application_steps.rb:25:in `/^I generate a new Rails application$/'
features/rails.feature:16:in `When I generate a new Rails application'
Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-virtual i686)
* Documentation: https://help.ubuntu.com/
System information as of Mon Nov 7 18:46:16 UTC 2011
System load: 0.0 Processes: 59
Usage of /: 94.9% of 7.87GB Users logged in: 0
Memory usage: 41% IP address for eth0: 10.244.250.74
Configuration:
http_read_timeout: 5
api_key: "c1182fee990a5c9d6dd80e2427904bab"
user_information: "Airbrake Error {{error_id}}"
notifier_version: "3.0.4"
rescue_rake_exceptions: nil
ignore: ["ActiveRecord::RecordNotFound", "ActionController::Rou
backtrace_filters: [#<Proc:0x000000010122b558@/usr/local/rvm/gems/ree-1.8.
params_filters: ["password", "password_confirmation"]
framework: "Rails: 3.0.9"
Configuration:
user_information: "Hoptoad Error {{error_id}}"
http_read_timeout: 5
notifier_version: "2.4.11"
ignore: ["ActiveRecord::RecordNotFound", "ActionController::Rou
params_filters: ["password", "password_confirmation"]
backtrace_filters: [#<Proc:0x0000000101de9b10@/usr/local/rvm/gems/ree-1.8.
framework: "Rails: 3.0.9"
host: "hoptoadapp.com"
ignore_by_filters: []
Error Message:
NoMethodError: undefined method `get' for nil:NilClass
Where:
dashboards#show
[PROJECT_ROOT]/app/models/choker.rb, line 16
URL:
http://livingsocial.airbrake.livingsocial.com/
Backtrace Summary:
=> Booting WEBrick
=> Rails 3.0.7 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
DEPRECATION WARNING: RAILS_ENV is deprecated. Please use ::Rails.env. (called from /opt/hoptoad-hosted/config/environment.rb:5)
Exiting
/opt/hoptoad-hosted/lib/maybe_mongo.rb:14:in `dup': can't dup NilClass (TypeError)
       from /opt/hoptoad-hosted/lib/maybe_mongo.rb:14:in `initialize'
       from /opt/hoptoad-hosted/config/initializers/mongo.rb:6:in `new'
       from /opt/hoptoad-hosted/config/initializers/mongo.rb:6
| notices | CREATE TABLE `notices` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`error_message` varchar(255) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`group_id` int(11) DEFAULT NULL,
`project_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_new_notices_on_created_at` (`created_at`),
KEY `index_new_notices_on_group_id_and_created_at` (`group_id`,`created_at`),
| old_notices | InnoDB | 10 | Compact | 1084599678 | 169 | 184082251776 | 0 | 118159966208 | 4194304 | 2069681974 | 2011-08-15 05:24:01 | NULL | NULL | utf8_general_ci | NULL | delay_key_write=1 | |
| Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time | Update_time | Check_time | Collation |
| notices | InnoDB | 10 | Compact | 244925163 | 162 | 39725301760 | 0 | 34348171264 | 6291456 | 2441247966 | 2011-08-15 05:24:01 | NULL | NULL | utf8_general_ci |
respond_to :html, :xml
def show
@post = Post.find(params[:id])
respond_with @post
end