Ruby on Rails Friday, March 18, 2016

Hi.. This is my first post in this forum. Kindly forgive if my problem
doesnot meet your standard..

I am using the following gems

gem 'will_paginate', '~> 3.0.6'
gem 'will_paginate-bootstrap'

:inner_window and outer_window properties doesnot showing me any changes
in my page.. I have tried like,

my views,

<%= will_paginate @issue, page_links: true, inner_window: 2,
outer_window: 1 %>

my controller,

@issue = Issue.all.paginate(page: params[:page], per_page:
5).order("issue_slip_no DESC")
..
How should I correct 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/b6c91f9b886819b4f65e3a350f9fdcf2%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment