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

Version Path
sharing_tags-0.0.18 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.17 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.16 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.15 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.14 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.13 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.12 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.11 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.10 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.9 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.8 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.7 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.6 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.5 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.4 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.3 spec/dummy/app/controllers/main_controller.rb
sharing_tags-0.0.2 spec/dummy/app/controllers/main_controller.rb