Module: PlaybooksHelper

Defined in:
app/helpers/playbooks_helper.rb

Overview

Playbooks Helper

Instance Method Summary collapse

Instance Method Details


5
6
7
# File 'app/helpers/playbooks_helper.rb', line 5

def link_to_playbook(obj)
  obj.playbook ? link_to(obj.playbook.name, obj.playbook) : ''
end

#select_playbook(form) ⇒ Object


9
10
11
12
13
# File 'app/helpers/playbooks_helper.rb', line 9

def select_playbook(form)
  tag.div class: 'select' do
    form.collection_select :playbook_id, Playbook.all, :id, :name
  end
end