search for: kaminari

Displaying 11 results from an estimated 11 matches for "kaminari".

2011 May 26
3
Kaminari rspec testing undefined method page.
Someone use kaminari for pagination? I''m doing some tests but I don''t know why I have an undefined method page. Here is my simple test: describe "GET index" do it "assigns all fire_preventions as @fire_preventions" do FirePrevention.stub(:search) { [mock_fire_prevention]...
2011 Feb 25
1
Kaminari: how page=1-param in link to first page?
Kaminari omits the :page-param for the first page. Does anybody know a way to get this ''fixed''? I''m now doing it this way (in _first_page_link.erb): <%= link_to page, url + ''?page=1'', :remote => remote %> but this is not really satisfying. Thanks,...
2012 May 22
4
undefined method `paginate'
I am working with Railsspace social networking book. I stuck in the problem when i am doing paginate for the search result. It gives the following error. NoMethodError in CommunityController#index undefined method `paginate'' for #<CommunityController:0x57436f0> My Controller Index page coding is below def index @title = "Community" @letters =
2013 Apr 03
2
strange behavior with active relation any? method
...any? must evaluate @drivers in the view to either false or nil, because the else is triggered instead when I click on second page in view. What''s even weirder is that when I call inspect on @drivers, then @drivers.any? is evaluated to true in the view when I click on the second page using kaminari: @drivers = Driver.select("drivers.*, #{sort_column}") .joins([:reports, :driving_habits]) .by_month(for_selected_month.to_i, for_selected_year.to_i) .order(sort_column + " " + sort_direction) ....
2011 Oct 14
0
Any data table component for rails?
...er side, need to pass params[:sort]/params[:search]/params[:pagination] to server side, which involves a lot of code, I''ve checked out rubygems.org and found a datatable project for jquery server side binding, but unfornately It has dependencies on both "will_paginate" and "kaminari", which breaks my activeadmin(I remove will_paginate and modify its code a little to use kaminari, but seems still have problem,the iTotalCount becomes nil, and it doesn''t support subtable?(the main table have a lot of subtable records, and need to paginate association submodel). S...
2011 Dec 07
5
Find_by_sql help?
How to make it work with paginator (kaminari)? MySQL and full text search: Words (id, word) @words = Word.find_by_sql(["SELECT id, word, MATCH (word) AGAINST (?) AS Score FROM words WHERE MATCH (word) AGAINST (?) ORDER BY Score Desc, word!=?", params[:search],params[:search],params[:search]]) I can''t add .page(params[:pa...
2013 Jan 03
1
Trying to add bootstrap to existing project, getting CSS compile error: missing file
...#39;',''0.2.6'' gem ''mysql2'',''0.3.11'' gem ''acts-as-taggable-on'' #gem "will_paginate", :git => ''git://github.com/mislav/will_paginate.git'', :branch => ''rails3'' gem ''kaminari'' gem "jquery-rails" gem "annotate" gem "bcrypt-ruby", :require => "bcrypt" The bootstrap gem install with no errors, but I can''t see where it install any files in the rails application directory tree. I''m really stumped by...
2012 Mar 05
8
Create a select with HABM
...rminated project. class Project < ActiveRecord::Base has_attached_file :image, :styles => { :medium => "300x200>", :thumb => "100x100>" } has_many :item has_and_belongs_to_many :users belongs_to :category belongs_to :color belongs_to :icon # kaminari # https://github.com/amatsuda/kaminari paginates_per 6 end class User < ActiveRecord::Base has_and_belongs_to_many :projects end Thank you for the help. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Rub...
2012 Dec 04
0
Empty test suite is run after every rake task
...ded by mongrel to start without rails server gem ''thin'' gem ''cancan'', ''1.6.8'' gem ''mysql'' gem ''soap4r'' gem ''SystemTimer'' gem ''whenever'', :require => false gem ''kaminari'' gem ''awesome_nested_set'' group :development do # gem ''rails3-generators'', :git => ''git://github.com/atomgas/rails3-generators.git'' gem ''mongrel'' gem ''faker'' gem ''wirble''...
2012 Jun 14
1
Cucumber/RSpec ::: Capybara? Webrat What am I using??
...2.7.0, 2.6.6) execjs (1.4.0, 1.3.0) ffi (1.0.11) formtastic (2.1.1) fssm (0.2.8.1) gherkin (2.11.0) god (0.12.1) haml (3.1.4) haml-rails (0.3.4) highline (1.6.12) hike (1.2.1) hpricot (0.8.6) i18n (0.6.0, 0.4.2) journey (1.0.3) jquery-rails (2.0.2, 2.0.1) jquery-ui-rails (0.2.2) json (1.7.3, 1.6.5) kaminari (0.13.0) launchy (2.1.0) libwebsocket (0.1.3) mail (2.4.4, 2.4.1, 2.2.19) mime-types (1.18, 1.17.2) mongo (1.5.2) mongoid (2.4.0) multi_json (1.3.6, 1.3.5) mysql2 (0.3.11) net-scp (1.0.4) net-sftp (2.0.5) net-ssh (2.5.2) net-ssh-gateway (1.1.0) nokogiri (1.5.4) orm_adapter (0.0.6) polyglot (0.3.3)...
2011 May 15
0
Upgrading to Rails 3.1
...rypt-ruby (2.1.4) * builder (3.0.0) * bundler (1.0.13) * coffee-script (2.2.0) * coffee-script-source (1.1.0) * daemons (1.1.3) * erubis (2.7.0) * eventmachine (0.12.10) * execjs (0.3.4) * hike (1.0.0) * hoptoad_notifier (2.4.9) * i18n (0.6.0beta1) * jquery-rails (1.0.2) * kaminari (0.12.4) * mail (2.3.0) * mime-types (1.16) * multi_json (1.0.2) * mustang (0.2.2) * polyglot (0.3.1) * rack (1.3.0.beta) * rack-cache (1.0.1) * rack-mount (0.7.4) * rack-ssl (1.3.2) * rack-test (0.6.0) * rails (3.1.0.beta1) * railties (3.1.0.beta1) * rake (0.8.7) * sass...