Module: TavernaPlayer::ApplicationHelper

Defined in:
app/helpers/taverna_player/application_helper.rb

Overview

These helpers will be available in the main application when you use Taverna Player.

Instance Method Summary collapse

Instance Method Details

#new_embedded_run_path(id_or_model) ⇒ Object

:call-seq:

new_embedded_run_path(workflow) -> string

Given a workflow instance, or workflow id, this method returns the URI path to a new embedded run of that workflow.



24
25
26
27
28
# File 'app/helpers/taverna_player/application_helper.rb', line 24

def new_embedded_run_path(id_or_model)
  id = workflow_id(id_or_model)

  raw(taverna_player.new_run_path(:workflow_id => id, :embedded => true))
end

#new_embedded_run_url(id_or_model) ⇒ Object

:call-seq:

new_embedded_run_url(workflow) -> string

Given a workflow instance, or workflow id, this method returns the full URI to a new embedded run of that workflow.



35
36
37
38
39
# File 'app/helpers/taverna_player/application_helper.rb', line 35

def new_embedded_run_url(id_or_model)
  id = workflow_id(id_or_model)

  raw(taverna_player.new_run_url(:workflow_id => id, :embedded => true))
end