Module: CouchI18n::ApplicationHelper

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

Instance Method Summary collapse

Instance Method Details

#are_you_sure(obj = nil) ⇒ Object



41
42
43
# File 'app/helpers/couch_i18n/application_helper.rb', line 41

def are_you_sure(obj = nil)
  t('couch_i18n.general.are_you_sure')
end

#boolean_show(truefalse) ⇒ Object



38
39
40
# File 'app/helpers/couch_i18n/application_helper.rb', line 38

def boolean_show(truefalse)
  truefalse ? t('couch_i18n.general.boolean_true') : t('couch_i18n.general.boolean_false')
end

#create_button_text(obj = nil) ⇒ Object



35
36
37
# File 'app/helpers/couch_i18n/application_helper.rb', line 35

def create_button_text(obj = nil)
  t('couch_i18n.action.create.button_text')
end


29
30
31
# File 'app/helpers/couch_i18n/application_helper.rb', line 29

def link_to_destroy_content(obj = nil)
  t('couch_i18n.action.destroy.label')
end


20
21
22
# File 'app/helpers/couch_i18n/application_helper.rb', line 20

def link_to_edit_content(obj = nil)
  t('couch_i18n.action.edit.label')
end


26
27
28
# File 'app/helpers/couch_i18n/application_helper.rb', line 26

def link_to_index_content(singular_name)
  t('couch_i18n.action.index.label')
end


17
18
19
# File 'app/helpers/couch_i18n/application_helper.rb', line 17

def link_to_new_content(obj)
  t('couch_i18n.action.new.label')
end


23
24
25
# File 'app/helpers/couch_i18n/application_helper.rb', line 23

def link_to_show_content(obj = nil)
  t('couch_i18n.action.show.label')
end

#partfinder?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'app/helpers/couch_i18n/application_helper.rb', line 9

def partfinder?
  params[:partfinder].present?
end

#title(msg) ⇒ Object



3
4
5
6
7
# File 'app/helpers/couch_i18n/application_helper.rb', line 3

def title(msg)
   content_for :title do
     msg
   end
end

#update_button_text(obj = nil) ⇒ Object



32
33
34
# File 'app/helpers/couch_i18n/application_helper.rb', line 32

def update_button_text(obj = nil)
  t('couch_i18n.action.update.button_text')
end

#valuefinder?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'app/helpers/couch_i18n/application_helper.rb', line 13

def valuefinder?
  params[:valuefinder].present?
end