Class: Jail::GithubsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Jail::GithubsController
- Defined in:
- app/controllers/jail/githubs_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 |
# File 'app/controllers/jail/githubs_controller.rb', line 5 def index @githubs = Github.all end |
#install ⇒ Object
13 14 15 16 17 |
# File 'app/controllers/jail/githubs_controller.rb', line 13 def install @github = Github.find(params[:name], params[:repo]) @github.install redirect_to( "/jail/#{params[:name]}/#{params[:repo]}", :notice => "Installed!" ) end |