Category Archives: Ruby on Rails

Deploy a Specific Mercurial Branch with Capistrano

This is mostly a reminder for me as I couldn’t find an example online (I have notoriously bad Google-Fu) about deploying a different branch to the one you have set in your Capistrano deploy.rb file. The command is very simple: … Continue reading

Posted in Programming, Ruby, Ruby on Rails, Uncategorized | Tagged , , | Leave a comment

Show All Results With The will_paginate Gem

A partial solution to getting will_paginate to show all the results on the one page. I chose to stick the link that will cause all the results to be displayed inside the pagination menu using jQuery. This should go in … Continue reading

Posted in jQuery, Ruby on Rails, Uncategorized | Tagged , | Leave a comment

Paginate an array using will_paginate

The will_paginate gem is a great bit of kit for adding pagination to your larger result sets. I recently had some trouble getting will_paginate to paginate an array. Naturally I checked the will_paginate Github page but failed to see a … Continue reading

Posted in Programming, Ruby on Rails | Tagged , , , | 4 Comments