# File lib/deltacloud/helpers/application_helper.rb, line 184 def action_url if [:index].include?(@operation.name) api_url_for("#{@collection.name.to_s}") elsif [:show, :stop, :start, :reboot, :attach, :detach].include?(@operation.name) api_url_for("#{@collection.name.to_s}/:id/#{@operation.name}") elsif [:destroy].include?(@operation.name) api_url_for("#{@collection.name.to_s}/:id") else api_url_for("#{@collection.name}/#{@operation.name}") end end