SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    May 2007
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    will_paginate and partials

    Hello I have a view (add_category.html.erb) and within it a partial that shows the category list. The list items are draggable in order to remove them (when I drop one of them on the waste bin remove_category is called and it removes the category) and all works just fine.
    The list in paginate (though will_pagination) and here there is my issue: after dropping an item. The pagination links are /remove_category?page=N instead /add_category?page=N so when I click one of them it shows only the partial.

    How can I keep the links /add_category?page=N even after dropping items.


    Thanks, I appreciate your help
    Alla prossima ...

  2. #2
    SitePoint Zealot
    Join Date
    May 2007
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, I solved this issue changing my app architecture
    Alla prossima ...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •