-
-
Save mcmoyer/977808d8431bed6a724f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jruby-1.6.1 :026 > AllowedCode.order("state_abbreviation asc").first | |
=> #<AllowedCode id: 72, state_abbreviation: "CO", effective_date: "2011-01-01", class_code: "0005", sub_code: "00", code_description: "FARM: NURSERY EMPLOYEES & Drivers", enabled: false, expired: false, created_at: nil, updated_at: nil> | |
jruby-1.6.1 :027 > AllowedCode.order("state_abbreviation asc") | |
(Object doesn't support #inspect) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
development: &development | |
adapter: jdbcmssql | |
host: 10.2.10.7 | |
database: mydbname | |
username: dbuser | |
password: dbpass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** LOCAL GEMS *** | |
abstract (1.0.0) | |
actionmailer (3.0.7) | |
actionpack (3.0.7) | |
activemodel (3.0.7) | |
activerecord (3.0.7) | |
activerecord-jdbc-adapter (1.1.1) | |
activerecord-jdbcmssql-adapter (1.1.1) | |
activeresource (3.0.7) | |
activesupport (3.0.7) | |
arel (2.0.9) | |
bouncy-castle-java (1.5.0146.1) | |
builder (2.1.2) | |
bundler (1.0.13) | |
capybara (1.0.0.beta1) | |
childprocess (0.1.8) | |
chunky_png (1.2.0) | |
compass (0.11.1) | |
compass-susy-plugin (0.9) | |
configuration (1.2.0) | |
diff-lcs (1.1.2) | |
erubis (2.6.6) | |
factory_girl (1.3.3) | |
factory_girl_rails (1.0.1) | |
ffi (1.0.7 java) | |
fssm (0.2.7) | |
haml (3.1.1) | |
haml-rails (0.3.4) | |
hpricot (0.8.4 java) | |
i18n (0.5.0) | |
jdbc-jtds (1.2.5 java) | |
jquery-rails (1.0) | |
jruby-openssl (0.7.4) | |
json_pure (1.5.1) | |
kaminari (0.12.4) | |
launchy (0.4.0) | |
mail (2.2.19) | |
mime-types (1.16) | |
nokogiri (1.4.4.2 java) | |
polyglot (0.3.1) | |
rack (1.2.2) | |
rack-mount (0.6.14) | |
rack-test (0.5.7) | |
rails (3.0.7) | |
rails3-generators (0.17.4) | |
railties (3.0.7) | |
rake (0.8.7) | |
rdoc (3.5.3) | |
rspec (2.5.0) | |
rspec-core (2.5.2) | |
rspec-expectations (2.5.0) | |
rspec-mocks (2.5.0) | |
rspec-rails (2.5.0) | |
ruby_parser (2.0.6) | |
rubycas-client (2.2.1) | |
rubyzip (0.9.4) | |
sass (3.1.1) | |
selenium-webdriver (0.2.0) | |
sexp_processor (3.0.5) | |
thor (0.14.6) | |
treetop (1.4.9) | |
tzinfo (0.3.27) | |
weakling (0.0.4 java) | |
xpath (0.1.4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AllowedCode.find(:all, :order => "state_abbreviation") | |
NoMethodError: You have a nil object when you didn't expect it! | |
You might have expected an instance of Array. | |
The error occurred while evaluating nil.<< | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/activerecord-jdbc-adapter-1.1.1/lib/arel/visitors/sql_server.rb:34:in `visit_Arel_Nodes_SelectStatement' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/arel-2.0.9/lib/arel/visitors/visitor.rb:15:in `send' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/arel-2.0.9/lib/arel/visitors/visitor.rb:15:in `visit' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/arel-2.0.9/lib/arel/visitors/visitor.rb:5:in `accept' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/arel-2.0.9/lib/arel/visitors/to_sql.rb:19:in `accept' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:111:in `with_connection' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/arel-2.0.9/lib/arel/visitors/to_sql.rb:17:in `accept' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/arel-2.0.9/lib/arel/tree_manager.rb:20:in `to_sql' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/activerecord-3.0.7/lib/active_record/relation.rb:64:in `to_a' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/activerecord-3.0.7/lib/active_record/relation/finder_methods.rb:143:in `all' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/activerecord-3.0.7/lib/active_record/relation/finder_methods.rb:105:in `send' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/activerecord-3.0.7/lib/active_record/relation/finder_methods.rb:105:in `find' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/activerecord-3.0.7/lib/active_record/relation/finder_methods.rb:101:in `find' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/activerecord-3.0.7/lib/active_record/base.rb:439:in `__send__' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/activerecord-3.0.7/lib/active_record/base.rb:439:in `find' | |
from (irb):4:in `evaluate' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/railties-3.0.7/lib/rails/commands/console.rb:44:in `start' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/railties-3.0.7/lib/rails/commands/console.rb:8:in `start' | |
from /home/mmoyer/.rvm/gems/jruby-1.6.1@class-codes/gems/railties-3.0.7/lib/rails/commands.rb:23:in `(root)' | |
from script/rails:6:in `require' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment