/crushinator_helpers

rails 4 helpers for building crush'd urls

Primary LanguageRubyMIT LicenseMIT

Build Crushinated URLs

Provides a helper to construct crushinated image URLs.

Vertical: Hero

Related links: https://github.com/tedconf/crushinator_helpers

  • Versions < 0.0.5 use Level3 CDN. Versions 0.0.5+ are SSL only
# Gemfile
gem 'crushinator_helpers', '0.0.5', git: 'git@github.com:tedconf/crushinator_helpers.git'

# app/helpers/application_helper.rb
module ApplicationHelper
  include CrushinatorHelpers::ViewHelpers
end

# app/views/talks/index.html.erb
<%= crushinate 'http://www.ted.com/image.jpg' %>