Sha256: b8dc284018495b7dcf0d514f049d5f911520b8a3cd31b456f55032c8694c6937
Contents?: true
Size: 554 Bytes
Versions: 10
Compression:
Stored size: 554 Bytes
Contents
class Detour::FeaturesController < Detour::ApplicationController def create @feature = Detour::Feature.new(params[:feature]) if @feature.save flash[:notice] = "Your feature has been successfully created." render "detour/shared/success" else @model = @feature render "detour/shared/error" end end def destroy @feature = Detour::Feature.find(params[:id]) @feature.destroy flash[:notice] = "Feature #{@feature.name} has been deleted." redirect_to flags_path(params[:flaggable_type]) end end
Version data entries
10 entries across 10 versions & 1 rubygems