# Will Pagination links getting not behaving as i wanted

**URL:** <https://www.ruby-forum.com/t/will-pagination-links-getting-not-behaving-as-i-wanted/169756>\
**Category:** Rails\
**Created:** [June 8, 2009, 11:49am UTC](https://www.ruby-forum.com/t/will-pagination-links-getting-not-behaving-as-i-wanted/169756 "2009-06-08T11:49:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![san2821](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4da419/32.png) [@san2821](https://www.ruby-forum.com/u/san2821)\
**Post date:** [June 8, 2009, 11:49am UTC](https://www.ruby-forum.com/t/will-pagination-links-getting-not-behaving-as-i-wanted/169756/1 "2009-06-08T11:49:05Z")

</div>

Hello All,

I have will pagination links in index view which works fine.  
but when i performing some other action and replacing list view  
that time pagination links i am supposed to be for index action.  
but they are not…links goes to last performed action.

You have any idea how to fix this problem ?

NOTE:  
i am updating list after creation of resource record that time  
pagination  
links goes to create action.  
I have –  
resource comment which is polymorphic in nature.  
resource post, forum, etc. they have many association with comments,  
comments\_controller where creation and list population is written.

Sandip R~

–  
Ruby on Rails Developer

> **[Blogs - Neuigkeiten - Artikel - Webseiten - Medien](https://www.sosblog.com/)**
>
> Auf SOSblog geht es um aktuelle Blogs, Neuigkeiten, Artikel, Webseiten und Medien. Wir bringen interessante neue Webseiten aus den Tiefen des Webs.

> **[Judul Situs](https://funonrails.wordpress.com)**
>
> “Cinta tidak mengenal batas. Cinta mampu melewati rintangan, melompati pagar, menembus dinding untuk mencapai tujuannya dengan penuh harapan.” — Maya Angelou

> **[Josh Software | Custom Software Development Services & Solutions](https://joshsoftware.com/)**
>
> JoshSoftware offers custom software development Services & Solution that provides enterprise, software development services for web & mobile.

---

<div class="post-metadata">

**Author:** ![san2821](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4da419/32.png) [@san2821](https://www.ruby-forum.com/u/san2821)\
**Post date:** [June 9, 2009, 9:53am UTC](https://www.ruby-forum.com/t/will-pagination-links-getting-not-behaving-as-i-wanted/169756/2 "2009-06-09T09:53:39Z")

</div>

nobody faced this problem ???

---

<div class="post-metadata">

**Author:** ![san2821](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4da419/32.png) [@san2821](https://www.ruby-forum.com/u/san2821)\
**Post date:** [June 9, 2009, 10:34am UTC](https://www.ruby-forum.com/t/will-pagination-links-getting-not-behaving-as-i-wanted/169756/3 "2009-06-09T10:34:42Z")

</div>

The links always point to the current action and append a page  
parameter. Are you using will\_paginate on a non-index view?

2009/6/9, Sandip R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> nobody faced this problem ???
> 
> >

–  
Von meinen Mobilgerät aus gesendet

---

<div class="post-metadata">

**Author:** ![san2821](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4da419/32.png) [@san2821](https://www.ruby-forum.com/u/san2821)\
**Post date:** [June 9, 2009, 11:47am UTC](https://www.ruby-forum.com/t/will-pagination-links-getting-not-behaving-as-i-wanted/169756/4 "2009-06-09T11:47:59Z")

</div>

Hi mikezter,

Thanks for your reply.

Can i override this default url ? How ?

Thanks,  
Sandip R~

On Tue, Jun 9, 2009 at 2:03 PM, mike [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> The links always point to the current action and append a page  
> parameter. Are you using will\_paginate on a non-index view?

–  
Ruby on Rails Developer

> **[Blogs - Neuigkeiten - Artikel - Webseiten - Medien](https://www.sosblog.com/)**
>
> Auf SOSblog geht es um aktuelle Blogs, Neuigkeiten, Artikel, Webseiten und Medien. Wir bringen interessante neue Webseiten aus den Tiefen des Webs.

> **[Judul Situs](https://funonrails.wordpress.com/)**
>
> “Cinta tidak mengenal batas. Cinta mampu melewati rintangan, melompati pagar, menembus dinding untuk mencapai tujuannya dengan penuh harapan.” — Maya Angelou

> **[Josh Software | Custom Software Development Services & Solutions](https://joshsoftware.com/)**
>
> JoshSoftware offers custom software development Services & Solution that provides enterprise, software development services for web & mobile.
