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