We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Michael Hartl (author)
Fri Jun 20 17:06:24 -0700 2008
commit  96ca20f62dd7ecd9b0c2cd608749f51e766a5631
tree    2b45658ab4b2f42ba1655a46c9f1ffb7678bf677
parent  bb697cce34b2d19ed0dcbc004d2ac5c0e2c41bf1
insoshi / app / helpers / messages_helper.rb
100644 8 lines (7 sloc) 0.258 kb
1
2
3
4
5
6
7
8
module MessagesHelper
  
  def list_link_with_active(name, options = {}, html_options = {}, &block)
    opts = {}
    opts.merge!(:class => "active") if current_page?(options)
    content_tag(:li, link_to(name, options, html_options, &block), opts)
  end
end