Displaying 17 results from an estimated 17 matches for "add_limit".
Did you mean:
addr_limit
2006 Mar 28
2
add_limit (in acts_as_taggable) breaks in 1.1, solution?
Upgraded from Rails 1.0 to 1.1 and found that the (slightly modified)
acts_as_taggable plugin breaks. The line
add_limit!(sql, options)
(in the tags_count method) causes this error
wrong number of arguments (2 for 3)
The documentation still says it takes two args, so I''m not sure what''s
wrong. Adding
logger.info("SQL here: " + sql)
logger.info("Options here:" + options...
2006 Apr 01
3
acts_as_taggable, wrong number of arguments
...lem.tags_count :limit => 100
I get this error:
ArgumentError in Volume#index
wrong number of arguments (2 for 3)
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
/usr/local/lib/ruby/gems/1.8/gems/acts_as_taggable-1.0.4/lib/taggable.rb:244:in
`add_limit!''
/usr/local/lib/ruby/gems/1.8/gems/acts_as_taggable-1.0.4/lib/taggable.rb:244:in
`find_tagged_with''
#{RAILS_ROOT}/app/controllers/volume_controller.rb:6:in `index''
Is there something I''m doing wrong?
Thanks in advance.
--
Kuba Nowak
2006 Apr 06
7
[Fwd: Rails AR/Oracle Unit Test: [4185] failed]
...vision 4185.
1) Error:
test_should_limit_calculation(CalculationsTest):
TypeError: can''t convert String into Array
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:310:in
`replace''
./test/../lib/active_record/connection_adapters/oracle_adapter.rb:310:in
`add_limit_offset!''
./test/../lib/active_record/base.rb:1046:in `add_limit!''
./test/../lib/active_record/calculations.rb:156:in
`construct_calculation_sql''
./test/../lib/active_record/calculations.rb:172:in
`execute_grouped_calculation''
./test/../lib/a...
2006 Aug 11
0
count not working?
I''m having some trouble with the count method on AR objects. Here is
a stack trace:
>> t.subscriptions.count
ArgumentError: wrong number of arguments (2 for 3)
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/
lib/active_record/calculations.rb:160:in `add_limit!''
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/
lib/active_record/calculations.rb:160:in `construct_calculation_sql''
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/
lib/active_record/calculations.rb:165:in `execute_simple_calculation...
2005 Mar 24
0
PATCH for Active Record 0.9 SQL Server Adapter problem => Rails 0.11does not work with SQL Server
...ll
Sent: Thursday, 24 March 2005 2:25 PM
To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Subject: [Rails] Active Record 0.9 SQL Server Adapter problem => Rails
0.11does not work with SQL Server
I just upgraded from Rails 0.10 to Rails 0.11, and my app generates the
following trace:
add_limit_without_offset! not implemented
Framework trace:
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.9.0/lib/active_record/conn
ection_adapters/sqlserver_adapter.rb:261:in `add_limit_without_offset!''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.9.0/lib/active_record/conn
ection_adapters/abstra...
2006 Jan 10
1
sql server freetds/odbc question
.../usr/lib/site_ruby/1.8/DBD/ODBC/ODBC.rb:168:in `execute''
/usr/lib/site_ruby/1.8/dbi/dbi.rb:640:in `execute''
/usr/lib/site_ruby/1.8/dbi/dbi.rb:671:in `select_all''
/vendor/rails/activerecord/lib/active_record/connection_adapters/
sqlserver_adapter.rb:354:in `add_limit_offset!''
/vendor/rails/activerecord/lib/active_record/base.rb:931:in
`add_limit!''
/vendor/rails/activerecord/lib/active_record/base.rb:924:in
`construct_finder_sql''
Any help appreciated!
Jamie
------
class ActionController::Base
def paginate_with_sor...
2007 Jul 23
2
Firebird, fireruby
...on_specification.rb:230:in
`retrieve_connection''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/
connection_adapters/abstract/connection_specification.rb:78:in
`connection''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/
base.rb:1139:in `add_limit!''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/
base.rb:1101:in `construct_finder_sql''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/
base.rb:997:in `find_every''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_r...
2006 Jan 10
1
sql server & linux: left join problem
.../usr/lib/site_ruby/1.8/DBD/ODBC/ODBC.rb:168:in `execute''
/usr/lib/site_ruby/1.8/dbi/dbi.rb:640:in `execute''
/usr/lib/site_ruby/1.8/dbi/dbi.rb:671:in `select_all''
/vendor/rails/activerecord/lib/active_record/connection_adapters/
sqlserver_adapter.rb:354:in `add_limit_offset!''
/vendor/rails/activerecord/lib/active_record/base.rb:931:in
`add_limit!''
/vendor/rails/activerecord/lib/active_record/base.rb:924:in
`construct_finder_sql''
/vendor/rails/activerecord/lib/active_record/base.rb:395:in `find''
/vendor...
2007 Sep 14
4
Refactoring ActiveRecord's private methods
As it currently stands, ActiveRecord has alot of private and protected
methods in the Base class.
>> ActiveRecord::Base.methods.size
=> 427
>> ActiveRecord::Base.protected_methods.size
=> 32
>> ActiveRecord::Base.private_methods.size
=> 193
I really loved the suggestion by Courtenay in Refactoring
AR::Base.find (http://groups.google.com/group/rubyonrails-core/
2006 Apr 04
5
How to implement tag clouds using plugin?
...tize_sql(options[:conditions])}" if
options[:conditions]
sql << " GROUP BY #{t}.name"
sql << " HAVING count #{options[:count]} " if options[:count]
sql << " ORDER BY #{options[:order]} " if options[:order]
add_limit!(sql, options)
result = connection.select_all(sql)
count = result.inject({}) { |hsh, row| hsh[row[''name'']] =
row[''count''].to_i; hsh } unless options[:raw]
count || result
end
and the note in
http://wiki.rubyonrails.org/ra...
2006 Jul 07
1
Pessimistic Locking Plugin Breaks ActiveRecord::Base.count()
...4 and that doesn''t seem
to be the case. Any idea when it''ll be in a production release?
- Don
>> Job.count
ArgumentError: wrong number of arguments (2 for 3)
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/calculations.rb:156:in
`add_limit!''
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/calculations.rb:156:in
`construct_calculation_sql''
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/calculations.rb:161:in
`execute_simple_calculation'...
2006 Mar 31
1
Ruby 1.8.4 upgrade screws up ActiveRecord
...n_specification.rb:220:in
`retrieve_connection''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in
`connection''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1044:in
`add_limit!''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1017:in
`construct_finder_sql''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:924:in
`find_every''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_r...
2006 Mar 16
1
Rails SQL generation (Firebird adapter) - can someone explain ...
I see some possible issues with the SQL that is being generated by the
firebird adapter.
Every SQL is being generated on the fly by concatenating strings.
Can someone please explain why the SQL is being generated the way it is?
I cannot use this in real life for a couple of reasons:
1. This introduces a security hole because a user, accidentally or
deliberately, could potentially submit a
2007 Jan 10
0
SQLite3::CantOpenException
...:220:in
''retrieve_connection''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in
''connection''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1046:in
''add_limit!''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1017:in
''construct_finder_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/a...
2005 Nov 16
4
What happened to mysql connection?
...rd/connection_adapters/abstract/
connection_specification.rb:83:in `retrieve_connection''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/
active_record/base.rb:253:in `connection''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/
active_record/base.rb:937:in `add_limit!''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/
active_record/base.rb:930:in `construct_finder_sql''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/
active_record/base.rb:411:in `find''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/
ac...
2006 Jul 28
2
Problems connecting to remote mysql db
...ieve_connection''
C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in
`connection''
C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1046:in
`add_limit!''
C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1017:in
`construct_finder_sql''
C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:924:in
`find_every''
C:/InstantRails-1.0/ruby/lib/ru...
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