How do I use the Cloudinary helpers from the Ruby GEM, using Sinatra?

You can 'require' Cloudinary's library and specifically include Cloudinary's view helper modules as shown here.

For example:

require "bundler/setup"
require "sinatra"
require "logger"
require "active_support"
require "action_view"
require "cloudinary"

helpers do
  include CloudinaryHelper
  def controller() nil end
  def config() nil end  
end
Have more questions? Submit a request

Comments

Powered by Zendesk