2016-12-09から1日間の記事一覧
def create @group = Group.create(group_params) if @group.save redirect_to root_path, notice: 'グループが作成されました' else flash.now[:alert] = "グループ名を入力してください" render :action => :new end end flash.now[:]で表示するメッセージ…
def create @group = Group.create(group_params) if @group.save redirect_to root_path, notice: 'グループが作成されました' else flash.now[:alert] = "グループ名を入力してください" render :action => :new end end flash.now[:]で表示するメッセージ…