module LetMeGoogleThatForYouHelper
  module ViewHelpers

    def lmgtfy_button phrase
      link_to 'Let me google that for you... idiot...',
        link(phrase),
        class: 'btn btn-large lmgtfu-btn'
    end

    def link phrase
      "http://lmgtfy.com/?q=#{phrase}"
    end

    def self.something_to_test number
      number.zero? ? true : false
    end
  end
end

module LetMeGoogleThatForYouHelper
  module ViewHelpers

    def lmgtfy_button phrase, label = nil
      if label.present?
        link_to label, link(phrase), class: 'btn btn-large lmgtfu-btn'
      else
        link_to 'Let me google that for you...',
          link(phrase),
          class: 'btn btn-large lmgtfu-btn'
      end
    end

    def link phrase
      "http://lmgtfy.com/?q=#{phrase}"
    end

    def self.something_to_test number
      number.zero? ? true : false
    end
  end
end

Add custom label possibility, remove swear words
Add custom label possibility, remove swear words
