Sha256: baba77c38cea6e780abe9dfb1978616a4bbede6c0a0cd5033f117e13f0390780
Contents?: true
Size: 682 Bytes
Versions: 4
Compression:
Stored size: 682 Bytes
Contents
class TraysController < ApplicationController def show end def create case params[:return_to] when "recede_or_redirect" then recede_or_redirect_to tray_url(id: 1) when "resume_or_redirect" then resume_or_redirect_to tray_url(id: 1) when "refresh_or_redirect" then refresh_or_redirect_to tray_url(id: 1) when "recede_or_redirect_back" then recede_or_redirect_back_or_to tray_url(id: 5) when "resume_or_redirect_back" then resume_or_redirect_back_or_to tray_url(id: 5) when "refresh_or_redirect_back" then refresh_or_redirect_back_or_to tray_url(id: 5) else raise "Supply return_to to direct response" end end end
Version data entries
4 entries across 4 versions & 1 rubygems