Work at implementing Helpers into your app. You can outline your pagination methods in many different helper models and keep things transparent on your views as well as make things more manageable for yourself.
For instance, Let's say you have a number of pagination views you are going to use for tables. Create a tables_helper.rb file and place your pagination methods there that apply for table formatting etc. Partials really only need to be created when you have multiple needs for the same bit of code between the views on a particular model. If you had 8 views for instance on one model and you are reusing a lot of the same code in those views, then create partials for the code bits you are sharing. However, keep in mind that sometimes you may get things too messy in your partials, especially if you use javascript or are applying conditions. They can't be readily checked unless you create controller methods that look into the specific partials as they are generated. This is why I recommend (as far as pagination goes), use helpers. They make a world of difference. -- 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 post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

