Sha256: 6c25e09245965824e57ba8b59c839f1c0d82e9e8f4db9c85793ba51dd626d04d
Contents?: true
Size: 521 Bytes
Versions: 6
Compression:
Stored size: 521 Bytes
Contents
class BlocksController < BaseController include Restful::Base respond_to :html restful model: :document def create create! do |success| success.html { redirect_to root_path } end end def update update! do |success, failure| success.html { redirect_to root_path } failure.html { render :new } end end protected def create_secure_params params.require(:document).permit :name end def update_secure_params params.require(:document).permit :name end end
Version data entries
6 entries across 6 versions & 1 rubygems