hi, i am trying to pass the paginate_collection function this.
@pages, @viewObj = paginate_collection Mcategory.find(params[:id],
:include => {:scategories => :howtos}), :page => @params[:page]
however, the problem seems that this format cant be read into the
collection.size method.
NoMethodError (undefined method size' for #<Mcategory:0x22b0c84>): /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1792:in
method_missing’
but when i try with a simple collection call of find(:all), it works
fine. so i am guessing it doesnt like my include statement.