Displaying 10 results from an estimated 10 matches for "validate_find_options".
2005 Dec 11
4
Problem with acts_as_paranoid: "ArgumentError: Unknown key(s): group"
...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-0.2/lib/acts_as_paranoid.rb:62:in
`find''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.1/lib/active_rec...
2006 May 20
1
acts_as_paranoid overrides ActiveRecord::Base??
...tion"=>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-1.14.0/lib/active_record/associations/has_many_through_association.rb:54:in
`find_target''
fr...
2008 Apr 15
1
acts_as_paranoid Unknown key(s): with_deleted
...ted => 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 someone help me out?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribe...
2006 Aug 09
7
changing find method
Hi,
i was wondering if there was a nice clean way(after all, it is ruby) to
change the find method of a certain model/class (Page) so that if i
wanted to use a find method on a @page instance it would return only
specific rows from the table(if the page.published == true/false:
the pages table looked like
SQL:
...
id int not null auto_increment,
published tinyint(1) not null,
something
2006 Jun 23
0
ActiveRacord::Base find does not support HAVING ?!
...tions)
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-forum.com/.
2006 Aug 07
0
Overloading ''find''
How would I overload find?
I got some excellent help on mixins for my classes using lib/, but it
doesn''t allow find to be overloaded. I''m testing with the example method
below:
module myModule
def find(*args)
options = extract_options_from_args!(args)
validate_find_options(options)
set_readonly_option!(options)
case args.first
when :first then find_initial(options)
when :all then find_every(options)
else find_from_ids(args, options)
end
find_initial(options)
end
end
So it wil...
2006 Jul 24
1
date_select and ActiveRecord find()
...y(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.rb:21:in `new''
/opt/local/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.rb:910:in
`perform...
2006 Jul 05
2
Serialized object behaves weird
Hi!
I got a class named EinsatzFilter which I serialized to session. Before
saving to session it works afterwards I keep getting the message:
"undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from
ActiveRecord::Base inherited class.
Code:
class EinsatzFilter
include ApplicationHelper
attr_reader :personen, :monat, :projekte, :kunde
2006 Feb 25
0
neverending i2/lighttpd problems
...t;=>"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/gems/activerecord-1.13.2/lib/active_record/base.
rb:379:in `find''
/app/controllers/books_controller.rb:7:in `pre...
2006 May 18
8
Concatenated key
...;
@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::DatabaseError: Execute
OLE error code:80040E14 in Microsoft OLE DB Provider for SQL Server
Incorrect syntax at ''...