Sha256: d2820941cfb66bdec60788ad4a72802fc591b5db47f9b254451968bfc2c043b8

Contents?: true

Size: 331 Bytes

Versions: 32

Compression:

Stored size: 331 Bytes

Contents

module Lentil
  class FlagsController < Lentil::ApplicationController
    def tally
      image = Image.find(params[:image_id])
      flag = Flag.new(:image => image)
      if flag.save
        session[:flagged_images] ||= []
        session[:flagged_images] << params[:image_id]
      end
      redirect_to :back
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
lentil-1.0.5 app/controllers/lentil/flags_controller.rb
lentil-1.0.4 app/controllers/lentil/flags_controller.rb
lentil-1.0.3 app/controllers/lentil/flags_controller.rb
lentil-1.0.2 app/controllers/lentil/flags_controller.rb
lentil-1.0.1 app/controllers/lentil/flags_controller.rb
lentil-1.0.0 app/controllers/lentil/flags_controller.rb
lentil-0.9.1 app/controllers/lentil/flags_controller.rb
lentil-0.9.0 app/controllers/lentil/flags_controller.rb
lentil-0.8.0 app/controllers/lentil/flags_controller.rb
lentil-0.7.1 app/controllers/lentil/flags_controller.rb
lentil-0.6.0 app/controllers/lentil/flags_controller.rb
lentil-0.5.2 app/controllers/lentil/flags_controller.rb
lentil-0.5.1 app/controllers/lentil/flags_controller.rb
lentil-0.5.0 app/controllers/lentil/flags_controller.rb
lentil-0.4.2 app/controllers/lentil/flags_controller.rb
lentil-0.4.0 app/controllers/lentil/flags_controller.rb
lentil-0.3.1 app/controllers/lentil/flags_controller.rb
lentil-0.3.0 app/controllers/lentil/flags_controller.rb
lentil-0.2.3 app/controllers/lentil/flags_controller.rb
lentil-0.2.2 app/controllers/lentil/flags_controller.rb