Ruby on Rails Sunday, March 20, 2016

Walter Davis wrote in post #1182304:
>> :inner_window and outer_window properties doesnot showing me any changes
>> 5).order("issue_slip_no DESC")
>> ..
>> How should I correct it?
>
> I think you may have the wrong method in your controller. It appears as
> though the method you should call there is named page() not paginate().
> Did you copy and paste this from your code? Here's the documentation --
> you should call page(params[:page]).per_page(10) (separate chained
> method) not paginate and the methods as attributes.
> https://github.com/mislav/will_paginate/wiki/API-documentation
>
> Walter

Thanks a bunch Walter.. I have corrected it..

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/19328a3018d67d164a8fafaa94b13de5%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment