search for: find_collection_for_pagin

Displaying 9 results from an estimated 9 matches for "find_collection_for_pagin".

2006 Jul 31
1
Pagination of Complex Queries
I''ve created a class method in my model called find_filtered. The intent is that I take various params that the user has submitted, and let the model build the query and return the AR collection, which is exactly what happens. However, now I''d like to paginate the recordset. Everything I''ve been able to find about pagination presumes that you have no pre-existing AR
2006 Jan 03
0
has_and_belongs_to_many include problem
...dition!'' :929:in`construct_finder_sql_with_included_associations'' active_record/associations.rb:917:in`select_all_rows'' active_record/associations.rb:830:in`find_with_associations'' active_record/base.rb:411:in`find'' action_controller/pagination.rb:174:in`find_collection_for_pagination'' action_controller/pagination.rb:192:in`paginator_and_collection_for'' action_controller/pagination.rb:124:in`paginate'' active_record/associations.rb:964:in`include_eager_conditions?'' 952:in`construct_finder_sql_for_association_limiting'' active_reco...
2006 Jan 10
1
sql server & linux: left join problem
...cord/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/rails/actionpack/lib/action_controller/pagination.rb: 174:in `find_collection_for_pagination'' /vendor/rails/actionpack/lib/action_controller/pagination.rb: 192:in `paginator_and_collection_for'' /vendor/rails/actionpack/lib/action_controller/pagination.rb: 124:in `paginate'' /lib/sorting.rb:7:in `paginate_with_sort'' Any ideas appreci...
2006 Jan 27
5
Newbie:Adding a new Table-Strange Error
...c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:431:in `find_by_sql'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:395:in `find'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/pagination.rb:174:in `find_collection_for_pagination'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/pagination.rb:192:in `paginator_and_collection_for'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/pagination.rb:124:in `paginate'' #{RAILS_ROOT}/app/controllers/cfg_dn_con...
2006 Jan 30
9
error when adding a new table to the existing application
...lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:431:in `find_by_sql'' >c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:395:in `find'' >c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/pagination.rb:174:in `find_collection_for_pagination'' >c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/pagination.rb:192:in `paginator_and_collection_for'' >c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/pagination.rb:124:in `paginate'' >#{RAILS_ROOT}/app/controller...
2006 May 05
0
Missing documentation for find_in_collection? Trying to drill down in a 4 level has_many association fails
...belongs_to :bar end So while in IRB via the console of my app, I can do this and see all the following options via command completion on the next step. >> @user = User.find(1) => #<User:0x26eb9cc @attributes={... >> @user.find @user.find @user.find_collection_for_pagination @user.find_mapped_obj_class @user.find_tag @user.find_all @user.find_first @user.find_mapped_soap_class @user.find_target @user.find_all_in_foos @user.find_first_recursive @user.find_name...
2006 Mar 31
7
problem with habtm conditions in pagination
.../1.8/gems/activerecord-1.14.0/lib/ active_record/base.rb:923:in `find_every'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/ active_record/base.rb:381:in `find'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/ action_controller/pagination.rb:182:in `find_collection_for_pagination'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/ action_controller/pagination.rb:198:in `paginator_and_collection_for'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/ action_controller/pagination.rb:129:in `paginate'' /app/controller...
2006 Apr 13
7
Complex SQL in paginate command?
Hi all, Is there a way to create pagination with a complex SQL, more complex than the :conditions option will support? I have two databases, houses and images. Houses has_many images, and each Image belongs_to house. I''m creating a search engine for the house records and I''d like to be able to filter out all the houses without any associated images. So far I''m
2006 Jun 21
7
acts_as_taggable and paginate?
Hi there, I''ve been trying to paginate over a list of members that all share a tag in common using the acts_as_taggable plugin. The regular way of paginating over a collection doesn''t seem to work with acts_as_taggable. Here''s what my method looks like that takes in a tag name, finds all the members that share the tag and then displays all the members. Nothing too fancy