Sha256: 04fb8a7c5b6ff687841ee99f2e1ec52a1ca5345bf1249041763fdf66cf5b4184

Contents?: true

Size: 758 Bytes

Versions: 1

Compression:

Stored size: 758 Bytes

Contents

module OpenStax
  module Connect
    module Dev
      class UsersController < DevController

        def index; end
        
        def create
          handle_with(Dev::UsersCreate,
                      success: lambda { redirect_to dev_users_path, notice: 'Success!'},
                      failure: lambda { render 'index', alert: 'Error' })
        end

        def generate
          handle_with(Dev::UsersGenerate,
                      success: lambda { redirect_to dev_users_path, notice: 'Success!'},
                      failure: lambda { render 'index', alert: 'Error' })
        end

        def search
          handle_with(Dev::UsersSearch,
                      complete: lambda { render 'search' })
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openstax_connect-0.0.1 app/controllers/openstax/connect/dev/users_controller.rb