A Rails helper that automatically inserts :target => '_blank' into links.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.rvmrc
Gemfile
LICENSE.txt
README.md
Rakefile
clear_helper.gemspec

README.md

LinkOutToHelper

Gem Version

Installation

Add this line to your application's Gemfile:

gem 'link_out_to_helper'

And then execute:

$ bundle

Or install it yourself as:

$ gem install link_out_to_helper

Usage

Use just like you would link_to, but know that it will merge :target => '_blank' into the options hash for link_to.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request