Sha256: 75350e2921860ae6cf4aacbe53dac2fa2e1dfde7f8d2f8e5579f6087a0a2f86f
Contents?: true
Size: 1.89 KB
Versions: 2
Compression:
Stored size: 1.89 KB
Contents
require_dependency "phcscriptcdnpro/application_controller" module Phcscriptcdnpro class Scriptcdn::InformationController < ApplicationController before_action :set_scriptcdn_information, only: [:show, :edit, :update, :destroy] # GET /scriptcdn/information def index @scriptcdn_information = Scriptcdn::Information.all end # GET /scriptcdn/information/1 def show end # GET /scriptcdn/information/new def new @scriptcdn_information = Scriptcdn::Information.new end # GET /scriptcdn/information/1/edit def edit end # POST /scriptcdn/information def create @scriptcdn_information = Scriptcdn::Information.new(scriptcdn_information_params) if @scriptcdn_information.save redirect_to @scriptcdn_information, notice: 'Information was successfully created.' else render :new end end # PATCH/PUT /scriptcdn/information/1 def update if @scriptcdn_information.update(scriptcdn_information_params) redirect_to @scriptcdn_information, notice: 'Information was successfully updated.' else render :edit end end # DELETE /scriptcdn/information/1 def destroy @scriptcdn_information.destroy redirect_to scriptcdn_information_index_url, notice: 'Information was successfully destroyed.' end private # Use callbacks to share common setup or constraints between actions. def set_scriptcdn_information @scriptcdn_information = Scriptcdn::Information.find(params[:id]) end # Only allow a trusted parameter "white list" through. def scriptcdn_information_params params.require(:scriptcdn_information).permit(:scripttitle, :scriptdescription, :scriptcategory, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptinitialrelease, :scriptlicence, :scriptplatform, :version_id, :main_id) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phcscriptcdnpro-1.7.7 | app/controllers/phcscriptcdnpro/scriptcdn/information_controller.rb |
phcscriptcdnpro-1.7.5 | app/controllers/phcscriptcdnpro/scriptcdn/information_controller.rb |