module TavernaPlayer::Concerns::Controllers::ServiceCredentialsController
Public Instance Methods
create()
click to toggle source
POST /service_credentials
# File lib/taverna_player/concerns/controllers/service_credentials_controller.rb, line 58 def create @service_credential = ServiceCredential.new(params[:service_credential]) if @service_credential.save flash[:notice] = "Service credential was successfully created." end respond_with(@service_credential) end
destroy()
click to toggle source
DELETE /service_credentials/1
# File lib/taverna_player/concerns/controllers/service_credentials_controller.rb, line 78 def destroy if @service_credential.destroy flash[:notice] = "Service credential was deleted." end respond_with(@service_credential) end
edit()
click to toggle source
GET /service_credentials/1/edit
# File lib/taverna_player/concerns/controllers/service_credentials_controller.rb, line 53 def edit end
find_cred()
click to toggle source
# File lib/taverna_player/concerns/controllers/service_credentials_controller.rb, line 32 def find_cred @service_credential = ServiceCredential.find(params[:id]) end
find_creds()
click to toggle source
# File lib/taverna_player/concerns/controllers/service_credentials_controller.rb, line 28 def find_creds @service_credentials = ServiceCredential.all end
index()
click to toggle source
GET /service_credentials
# File lib/taverna_player/concerns/controllers/service_credentials_controller.rb, line 38 def index end
new()
click to toggle source
GET /service_credentials/new
# File lib/taverna_player/concerns/controllers/service_credentials_controller.rb, line 48 def new @service_credential = ServiceCredential.new end
show()
click to toggle source
GET /service_credentials/1
# File lib/taverna_player/concerns/controllers/service_credentials_controller.rb, line 43 def show end
update()
click to toggle source
PUT /service_credentials/1
# File lib/taverna_player/concerns/controllers/service_credentials_controller.rb, line 69 def update if @service_credential.update_attributes(params[:service_credential]) flash[:notice] = "Service credential was successfully updated." end respond_with(@service_credential) end