Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

foundation_paginate doesn't support parameters of will_paginate #1

Open
simo2409 opened this issue Jun 17, 2013 · 5 comments
Open

foundation_paginate doesn't support parameters of will_paginate #1

simo2409 opened this issue Jun 17, 2013 · 5 comments

Comments

@simo2409
Copy link

For example if you try to customize pagination param with:

<%= foundation_paginate @users, :param_name => :user_page %>

You get an error while it works with will_paginate:

<%= will_paginate @users, :param_name => :user_page %>

@acrogenesis
Copy link

@simo2409 did you find a solution for this?

@simo2409
Copy link
Author

@acrogenesis No, they are just "not supported" by the gem, I didn't write code because I was only trying it

@acrogenesis
Copy link

@simo2409 if you are still looking for a solution I found one here is the gist, just add this to your application helper
https://gist.github.com/acrogenesis/6731908
just add the params to the will_paginate_foundation and use on your view
<%= will_paginate_foundation(@pages) %>

@simo2409
Copy link
Author

@acrogenesis Interesting, thank you for sharing 👍

@acrogenesis
Copy link

For anyone who finds this problem i made a new gem which works great for adding params and other things https://github.com/acrogenesis/will_paginate-foundation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants