Sha256: c4ca86d8b600346c9c91effd8ee4b12e8ddf539dfeda4fc58c9099cc9fcefc02
Contents?: true
Size: 409 Bytes
Versions: 1
Compression:
Stored size: 409 Bytes
Contents
class PagesController < ApplicationController def new @page = Page.new end def create @page = Page.new(page_params) if @page.save flash[:success] = "Page Saved" redirect_to @page else render 'new' end end def show @page = Page.find(params[:id]) end private def page_params params.require(:page).permit(:color_1, :color_2, :color_3) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-colorpicker2-rails-0.0.1 | test/colorpicker2_rails_test/app/controllers/pages_controller.rb |