search for: assert_valid_keys

Displaying 20 results from an estimated 21 matches for "assert_valid_keys".

2008 Sep 12
1
ArgumentError: Unknown key(s): dependant
...s_to :album end class Album < ActiveRecord::Base has_one :cover, :dependent => :destroy end At the console: >> Album.find :first ArgumentError: Unknown key(s): dependant from /home/marc/rails_projects/project/vendor/plugins/facebooker/lib/facebooker/rails/helpers.rb:589:in `assert_valid_keys'' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations.rb:1187:in `create_has_one_reflection'' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations.rb:727:in `has_one'' from /home/marc/rails_...
2006 Jan 23
6
undefined method assert_valid_keys
...aving trouble understanding why I am getting the following error message. I''ve double checked my code and everything looks good. Can anyone share any insight into the message? Thanks! John ------------------------------------------------------------------------------ undefined method `assert_valid_keys'' for :hangars:Symbol (NoMethodError) /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/associations.rb:343:in `has_many_without_reflection'' (eval):5:in `has_many'' script/../config/../app/models/site.rb:3 /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib...
2005 Dec 11
4
Problem with acts_as_paranoid: "ArgumentError: Unknown key(s): group"
Here''s the full error: 1) Error: test_add_message_to_existing_ticket(TicketTest): ArgumentError: Unknown key(s): group /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_support/core_ext/hash/keys.rb:48:in `assert_valid_keys'' /usr/lib/ruby/gems/1.8/gems/acts_as_paranoid-0.2/lib/acts_as_paranoid.rb:125:in `validate_find_options'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.1/lib/active_record/base.rb:1164:in `extract_options_from_args!'' /usr/lib/ruby/gems/1.8/gems/acts_as_paranoid...
2006 Jan 17
15
legacy database and finder_sql nightmare!
...where order.order_number = CONCAT(SUBSTRING(app_name.#{item_number},1,14),\''00\'')'' end These produce the following errors. ArgumentError (Unknown key(s): finder_sql): /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/core_ext/hash/keys.rb:48:in `assert_valid_keys'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/associations.rb:519:in `belongs_to_without_reflection'' (eval):5:in `belongs_to'' /app/models/name.rb:4 /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/associations.rb:355:...
2010 Jul 22
9
Something went wrong.
My app works fine in development on my laptop but in production on my server I get "We''re sorry, but something went wrong. We''ve been notified about this issue and we''ll take a look at it shortly." I am using Rails 3, Ruby 1.8.7, Apache and passenger 2.2.15 I get the welcome aboard page in production if I just go to the domain name but as soon as I want data
2012 Jul 17
1
AR deprecated finders
Hi all, I had troubles while running tests on Active Record: bundle exec rake test_sqlite3 /Users/oscardelben/code/rails/activesupport/lib/active_support/core_ext/hash/keys.rb:70:in `block in assert_valid_keys'': Unknown key: extend (ArgumentError) This is because some models used by tests are using the extend option which now seems deprecated. Should related tests be removed/migrated to not use these options anymore? I don''t see mentions in the Changelog and documentation, but if thi...
2009 Jun 27
1
Problem with :touch in belongs_to
...hange of any phone number would change User updated_at and also call user after_update callback. But when I add :touch parameter I get error that looks like: ArgumentError: Unknown key(s): touch from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/ active_support/core_ext/hash/keys.rb:47:in `assert_valid_keys'' from /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/ associations.rb:1506:in `create_belongs_to_reflection'' from /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/ associations.rb:994:in `belongs_to'' from (eval):3:in `belongs_to'...
2008 Apr 15
1
acts_as_paranoid Unknown key(s): with_deleted
...model (Course), and added the deleted_at column. This is OK: Course.find_with_deleted(:all) Course.find(:all, :with_deleted => true) gives: ArgumentError: Unknown key(s): with_deleted from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ active_support/core_ext/hash/keys.rb:49:in `assert_valid_keys'' from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ active_record/base.rb:1894:in `validate_find_options'' from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ active_record/base.rb:498:in `find'' from (irb):28 Has anyone else run into this or can...
2006 May 20
1
acts_as_paranoid overrides ActiveRecord::Base??
...;"1", "subtitle"=>nil, "pages"=>"343", "author_description"=>nil}> >> b.tags ArgumentError: Unknown key(s): from from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/core_ext/hash/keys.rb:48:in `assert_valid_keys'' from ./script/../config/../config/../lib/acts_as_paranoid.rb:66:in `validate_find_options'' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:376:in `find'' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-...
2006 Feb 17
3
Migration Errors?
...------------------------------------------ antrover:~/RubyProjects/rlog dhoefler$ ruby script/generate migration add_db_tagging /Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/core_ext/hash/keys.rb:48:in `assert_valid_keys'': Unknown key(s): polymorphic (ArgumentError) from /Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/associations.rb:519:in `belongs_to_without_reflection'' from (eval):5:in...
2011 Sep 08
1
Magic Multi Connections gem + Rails 3.1
...anyone tried to run this gem under 3.1? I''m getting error that mirror_db_connection is not valid key: ArgumentError: Unknown key: mirror_db_connection from /Users/nopik/.rvm/gems/ruby-1.9.2-p180@christmas/gems/ activesupport-3.1.0/lib/active_support/core_ext/hash/keys.rb:44:in `block in assert_valid_keys'' from /Users/nopik/.rvm/gems/ruby-1.9.2-p180@christmas/gems/ activesupport-3.1.0/lib/active_support/core_ext/hash/keys.rb:43:in `each_key'' from /Users/nopik/.rvm/gems/ruby-1.9.2-p180@christmas/gems/ activesupport-3.1.0/lib/active_support/core_ext/hash/keys.rb:43:in `assert_valid...
2006 Mar 22
15
Rails-1.1.0-RC1 tagged today (4010)
Looks like Rails 1.1.0 RC1 is finally here: http://dev.rubyonrails.org/changeset/4010 -- Posted via http://www.ruby-forum.com/.
2006 Jun 23
0
ActiveRacord::Base find does not support HAVING ?!
...:group=> ''t1.id'', :having=> "count(c2) = #{my_var}" } T1.find(:all,options) But I got the following error: ArgumentError in T1Controller#action1 Unknown key(s): having lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/hash/keys.rb:48:in `assert_valid_keys'' lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1325:in `validate_find_options'' lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:376:in `find'' Why is this unsupported? Thanks in advance Ronald -- Posted via http://www.ruby-f...
2006 Mar 23
5
Polymorphic associations
.... These associations work properly on the console. The problem occurs when I''m listing the items... perhaps the problem is pagination. Is this a bug or what should I do? Here is the log: C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/core_ext/hash/keys.rb:48:in `assert_valid_keys'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/associations.rb:438:in `has_one_without_reflection'' (eval):5:in `has_one'' #{RAILS_ROOT}/app/models/person.rb:4 #{RAILS_ROOT}/app/controllers/company_controller.rb:7:in `list'' -e:3 -- Posted...
2006 Jul 24
1
date_select and ActiveRecord find()
...a Active Record object be found based on this date that is passed? Here is what my log says: ArgumentError (Unknown key(s): publication_date(2i), publication_date(3i), publication_date(1i)): /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/hash/keys.rb:48:in `assert_valid_keys'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1323:in `validate_find_options'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:376:in `find'' /app/controllers/admin/publication_volume_controller....
2006 Mar 22
0
Another Problem with params
...ArgumentError in Admin#create Unknown key(s): Spare RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace C:/InstantRails_1_0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/core_ext/hash/keys.rb:48:in `assert_valid_keys'' C:/InstantRails_1_0/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/associations.rb:519:in `belongs_to_without_reflection'' (eval):5:in `belongs_to'' #{RAILS_ROOT}/app/models/spare.rb:6 #{RAILS_ROOT}/app/controllers/admin_controller.rb:24:in `create'&...
2006 Apr 22
9
one to many question
1. A category has parent categories. 2. A product is in many categories and a category has many products. 3. Products and category both have images in the same image table. ie. a product and / or category could have multiple images.<=== my question is related to this So among other things I presume I have to do the following: class Category < ActiveRecord:Base #...
2006 Feb 25
0
neverending i2/lighttpd problems
...2.21.94.10 at 2006-02-25 02:47:37) [GET ] Parameters: {"action"=>"premiere", "controller"=>"books"} ArgumentError (Unknown key(s): condition): /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/core _ext/hash/keys.rb:48:in `assert_valid_keys'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base. rb:1169:in `validate_find_options'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base. rb:1164:in `extract_options_from_args!'' /usr/local/lib/ruby/gems/1.8...
2006 Jan 06
6
Help with TextSearch :all and MySQL
Hi, I really need help with making the ''searches_on :all'' in Duane Johnson''s TextSearch work with MySQL (not sure if it works with other db''s). http://wiki.rubyonrails.com/rails/pages/TextSearch I realize that there are other search packages out there. But this particular solution best fits my small needs of searching a small database. I''ve gotten
2006 May 18
8
Concatenated key
...on doesn''t work: --- @perm = Permission.find("FK_USR_ID" => @user.id, "FK_SECT_ID" => @sector.id) gives: ArgumentError (Unknown key(s): FK_USR_ID, FK_SECT_ID): c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/hash/keys.rb:48:in `assert_valid_keys'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1323:in `validate_find_options'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:376:in `find'' --- @perm = Permission.find(@user.id,@sector.id) gives: DBI::...