From 463b2d7e237b08181941bbba01e533e89fe4cff1 Mon Sep 17 00:00:00 2001 From: Room5-Joey Date: Tue, 13 May 2014 17:31:03 -0700 Subject: [PATCH] added autolink gem to site. We should integrate this with the forums as well? And pretty much any text field? --- Gemfile | 1 + app/views/shoutmsgs/_shoutmsg.html.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index ce9f29f..3be9603 100644 --- a/Gemfile +++ b/Gemfile @@ -36,6 +36,7 @@ gem 'font-awesome-sass', '~> 4.1.0.0' gem 'bourbon', '~> 3.1.8' gem 'neat', '~> 1.6.0' gem 'haml' +gem 'rails_autolink', '~> 1.1.5' group :assets do gem 'uglifier', '~> 2.5.0' diff --git a/app/views/shoutmsgs/_shoutmsg.html.erb b/app/views/shoutmsgs/_shoutmsg.html.erb index b23ff29..2dcd558 100644 --- a/app/views/shoutmsgs/_shoutmsg.html.erb +++ b/app/views/shoutmsgs/_shoutmsg.html.erb @@ -9,7 +9,7 @@
- <%= shoutmsg.text %> + <%= auto_link(shoutmsg.text, :html => { :target => '_blank' }) %> <% if shoutmsg.can_destroy? cuser %> <%= link_to icon('times'), shoutmsg, method: :delete, class: 'destroy' %> <% end %>