Another tool which you could use is GitHub Desktop. The application has a better user experience and user interface over SourceTree. The layout of the GitHub Desktop application is simple and straightforward with an uncluttered interface, making it perfect for the beginner, though still including more powerful options for the advanced developer.
Follow these steps:
[I really had this problem a few months ago and solved it this way]
I recently had the same problem and found really fancy plugin:
will_paginate
The plugin can be installed like so:
First, ensure that you’re running at least RubyGems 1.2 (check gem -v if you’re not sure).
The will_paginate gem is built by GitHub. Add GitHub to your gem sources (once per machine):
gem sources -a http://gems.github.com
Install the library:
gem install mislav-will_paginate
To enable the library your Rails 2.0.x (or even 1.2.x) project, load it in “config/environment.rb”
Rails::Initializer.run do |config|
...
end
require "will_paginate"
Don’t put it before or inside the Rails::Initializer block because the Rails framework is not yet loaded at that point of execution.
That will always load the latest installed version of the gem. If you want to have control of the version loaded, you can use version constraints with the gem method:
# choose one of the following constraints:
gem 'mislav-will_paginate', '2.1.0'
gem 'mislav-will_paginate', '>=2.1.0'
gem 'mislav-will_paginate', '~>2.1' # this will load any 2.x version
# (greater or equal to 2.1), but not 3.x
# finally, load the library
require 'will_paginate'
-------------------------------------------------------------------------
Puhhh, that was the hard part know look how cool it works:
It’s very easy to do pagination on ActiveRecord models:
@posts = Post.paginate :page => params[:page], :order => 'created_at DESC'
In the view, page links can be rendered with a single view helper:
<%= will_paginate @posts %>
For further information:
http://github.com/mislav/will_paginate/wikis
and if that´s not enough: google is your friend
Happy Hacking!!!