Sha256: fe66b48433d8c588c85e74ef1ab1553f0e3366076eeb2fead7caf74d5c0773c9
Contents?: true
Size: 624 Bytes
Versions: 5
Compression:
Stored size: 624 Bytes
Contents
class UnderConstructionEmailStorageController < ApplicationController def create @email = UnderConstructionEmailStorage.new(params[:under_construction_email_storage]) respond_to do |format| if @email.valid? @email.save_to_file format.html { redirect_to under_construction_index_path, notice: I18n.t('controllers.under_construction_email_storage.create.flash.success', default: "Your email added successfully" )} else format.html { redirect_to under_construction_index_path, alert: @email.errors.full_messages } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems