search for: deprecated_find

Displaying 7 results from an estimated 7 matches for "deprecated_find".

2006 Aug 10
1
Timeout when rebuilding index
.../opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/mysql_adapter.rb:185:in `execute'' from /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/mysql_adapter.rb:337:in `select'' <snip> deprecated_finders.rb:37:in `find_all'' from rebuild_index.rb:12 To give some context: this is the rebuild_index script which lives in vendor/plugins/acts_as_ferret, and it''s working on a single table with 6 columns in it, and approx. 200 meg of data. This table is mapped onto a single...
2006 Feb 20
5
find(:all) vs find_all
...clue me in. I''ve always felt that one of the uglier APIs was the ActiveRecord::find() method. I call that sort of API a kitchen sink method because it does so many different things. It really should be multiple methods. And in fact, it used to be! Look in ActiveRecord''s deprecated_finders.rb file. There are three methods in there - find_all, find_first, and find_on_conditions. While I can see an argument for dropping find_on_conditions, the other two seem quite natural, and far preferable to find(:all) and find(:first). Seems like it would simplify things, including th...
2007 Jan 10
0
SQLite3::CantOpenException
...r_sql'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:924:in ''find_every'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:381:in ''find'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/deprecated_finders.rb:37:in ''find_all'' #{RAILS_ROOT}/app/controllers/post_controller.rb:4:in ''index'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:941:in ''perform_action_without_filters'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12....
2007 Aug 06
4
problem with rails_root
...ery'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:991:in `find_initial'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:417:in `find'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/deprecated_finders.rb:23:in `find_first_without_deprecation'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/deprecation.rb:94:in `find_first'' app/models/user.rb:7:in `authenticate'' app/controllers/login_controller.rb:11:in `login'' /usr/local/lib/ruby/g...
2006 Apr 22
6
nOOb question: How to use find_all with form input data
Hello, I''m having a problem utilizing the find_all method with a value from a form. I keep getting the following error: Mysql::Error: #42S22Unknown column ''category_id11'' in ''where clause'': SELECT * FROM items WHERE (category_id11) The controller seems to be getting the correct data, but my key and value seem to be mashed together(it''s
2006 Jun 22
11
Help please
Getting this error: SyntaxError in CompanyController#positionslist (eval):1:in `compute_type'': compile error (eval):1: parse error, unexpected tINTEGER Object::2 I could not find anything out about it (googling) and it''s not the clearest error message. Not sure if it''s related to an expected data type but that wouldn''t make sense. The only other thing I can
2007 Jun 23
7
rake db:migrate strange behaviour "wrong number of arguments (1 for 0)"
Hi everybody, May be somebody has a clue, why I get these errors below, while trying to migrate. Any help is very appreciated! Greetinx Rafael I was trying to experiment a litte bit with redMine (www.redmine.org). But I can only install it locally. On a system with already a mongrel_cluster running, I get strange errors, already while trying to start the migration rake db:migrate