app/controllers/adminpanel/sections_controller.rb in adminpanel-2.4.0 vs app/controllers/adminpanel/sections_controller.rb in adminpanel-2.4.1

- old
+ new

@@ -2,34 +2,21 @@ class SectionsController < Adminpanel::ApplicationController def index @sections = Section.all end - # def new - # @section = Section.new - # authorize! :create, @section - # end - def edit @section = Section.find(params[:id]) - # respond_to do |format| - # format.html - # format.json {render :json => {:section => @section }} - # end end def update @section = Section.find(params[:id]) if @section.update(section_params) redirect_to section_path(@section), notice: 'La seccion se ha actualizado' else render 'edit' end - end - - def show - @section = Section.find(params[:id]) end private def section_params params.require(:section).permit(