Sha256: 84c4fa4c91a0baaac015e348670a3e4aa832cee138d6ca1e95271b3388efdf13

Contents?: true

Size: 476 Bytes

Versions: 1

Compression:

Stored size: 476 Bytes

Contents

module Docushin
  class RoutesController < Docushin::ApplicationController
    before_filter :load_route_set
    before_filter :authorize!, :only => [:edit, :update]

    def index
    end

    def show
      @route = @route_set.find(params[:id])
    end

    def edit
      @route = @route_set.find(params[:id])
    end

    def update
      @route = @route_set.find(params[:id])
      @route.update_attributes(params[:route])
      redirect_to routes_path
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
docushin-0.0.2 app/controllers/docushin/routes_controller.rb