Created
October 21, 2013 16:40
-
-
Save Viswanathantv/7086883 to your computer and use it in GitHub Desktop.
terrellt
This file contains hidden or 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
1.9.3-p392 :002 > City.find(1) | |
City Load (20.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 1]] | |
=> #<City id: 1, state_id: 1, name: "Bangalore", overview: "Bangalore is the capital city of the Indian state ...", fact: "test test test test test test test test test test t...", top_industries: "test test test test test test test test test test t...", judicial_system: "test test test test test test test test test test t...", business_real_estate: "test test test test test test test test test test t...", regulatory_authorities: "test test test test test test test test test test t...", created_at: "2013-10-21 11:20:44", updated_at: "2013-10-21 11:20:44"> | |
1.9.3-p392 :003 > City.search("id=129378198273") | |
NoMethodError: undefined method `with_indifferent_access' for "id=129378198273":String | |
from /home/zeptor2/.rvm/gems/ruby-1.9.3-p392/gems/ransack-0.7.2/lib/ransack/search.rb:21:in `initialize' | |
from /home/zeptor2/.rvm/gems/ruby-1.9.3-p392/gems/ransack-0.7.2/lib/ransack/adapters/active_record/base.rb:15:in `new' | |
from /home/zeptor2/.rvm/gems/ruby-1.9.3-p392/gems/ransack-0.7.2/lib/ransack/adapters/active_record/base.rb:15:in `ransack' | |
from (irb):3 | |
from /home/zeptor2/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands/console.rb:47:in `start' | |
from /home/zeptor2/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands/console.rb:8:in `start' | |
from /home/zeptor2/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:41:in `<top (required)>' | |
from script/rails:6:in `require' | |
from script/rails:6:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment