Sha256: a31a5a6b5bb686844106f96a3d50499381622b0fae9a599be9e2f03ee8be2dfe
Contents?: true
Size: 727 Bytes
Versions: 17
Compression:
Stored size: 727 Bytes
Contents
class MainController < ApplicationController def index end def photo @photo = ::Hashie::Mash.new(photo: "best_photo") sharing_tags.switch_context_to(:photo, @photo) # view_context.sharing_tags.switch_context_to(:gallery, @photo) # sharing_tags(:photo, @photo) # sharing_tags.switch_context_to(:photo, p1: @photo, p2: @object2) # sharing_tags.switch_context_to(:photo, @photo ) # sharing_tags(:photo, @photo, title: "Default title", facebook: {title: "Facebook Title"}) # ? # render sharing_tags.to_s # render meta tags end def profile @user = ::Hashie::Mash.new(birthday: Date.parse("1969-12-28"), name: "Linus") sharing_tags.switch_context_to(:profile, @user) end end
Version data entries
17 entries across 17 versions & 1 rubygems