ruby on rails - will_paginate undefined method. The Will_paginate gem appears to work though -


I am using Rail 2.3.8

My error:

  undefined method # delay will be 'flagged'; ActionView :: Base: 0x1124bfa10 & gt;   

in environment.rb:

  requires "bundler / setup" Bundler.require (default)   < P> In my jam file:  
  Mani "Will_pignet", "2.3.14"   

In this view:

  & Lt;% = Will_Pagnet (@Subscriptions)% & gt; In Administrator   

:

  @search = subscription.search (Param [: search]) @ search.order || =: Ascend_by_account_id @ Subscriptions = @ Search.all.paginate (: include = & gt ;: account ,: page = & gt; parameter [: page] ,: per_page => 30)   

Now ... the endorsement of the methods are visible to work in the rest of the applications ... it is just that this is_paginate method that the pagination link does not work. = \

Now, I just started using the bundler, and before the bundler, everything used to work all the time. In my environment Rb I need

  "bundler / setup" Bundler.require (default)   

Correct Rails :: Initializer Call

And here is: Default part of my gem file:

  Source "http://rubygems.org" # system gem "rails", "2.3. 8 "gem" active support "," 2.3.8 ",: requirement => The "active_support" gem "rake", "0.8.7" may occur for PO #s, not sure that gem "hair process", "0.2.2" ,: git = & gt; "Git: //github.com/jarib/childprocess.git" #Application Mani "mysql", "2.7" gem "lockfile" gem "ssl_requirement", "0.1.0" gem "attr_encrypted", "1.1.2" # Mani "SearchGalic", "2.5.6" Mani "Will_Paganet", "2.3.16" Mani "Paperclip" Mani "Hemp", "0.7.6" Gem "Delayed", "2.0.3" Gem "httparty", "0.5.2" Mani "Tony", "1.1" Mani "Friendly_ID", "3.0.6" Mani "Stringx", "1.1.0" Mani "i18n", "0.4.2" Gem "sms_fu", "1.1 Note: Some reason search logic only works when it is included in the rail: Start in Classic Rail 2.3 Initializer.Run Call. Config.gem "searchlogic",: version => "2.2.28"   

Disable automatic requirement of will_paginate:

  # Gemfile gem "will_paginate", "~> 2.3.15",: need = & gt;   

and manually at the end of the environment.rb itself requires:

  # environment.rb end # needs "will_pignet "  

This is it, if you want to get rid of the Rail :: Starter call, it can not boot properly.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -