Module ApplicationHelper
In: app/helpers/application_helper.rb

Methods added to this helper will be available to all templates in the application.

Methods

Public Instance methods

[Source]

    # File app/helpers/application_helper.rb, line 36
36:   def add_image
37:     image "/images/add.gif", 'Add'
38:   end

[Source]

    # File app/helpers/application_helper.rb, line 16
16:   def add_link_to method
17:     image_link_to add_image, method    
18:   end

[Source]

    # File app/helpers/application_helper.rb, line 24
24:   def back_image
25:     image "/images/arrow_up.gif", 'Back'
26:   end

[Source]

    # File app/helpers/application_helper.rb, line 8
 8:   def back_link_to method
 9:     image_link_to back_image, method    
10:   end

[Source]

    # File app/helpers/application_helper.rb, line 60
60:   def check_image
61:     image "/images/check.gif", 'Off'
62:   end

[Source]

    # File app/helpers/application_helper.rb, line 56
56:   def check_off_image
57:     image "/images/check_off.gif", 'Off'
58:   end

[Source]

    # File app/helpers/application_helper.rb, line 52
52:   def check_on_image
53:     image "/images/check_on.gif", 'On'
54:   end

[Source]

    # File app/helpers/application_helper.rb, line 40
40:   def delete_image
41:     image "/images/delete.png", 'Delete'
42:   end

[Source]

   # File app/helpers/application_helper.rb, line 4
4:   def delete_link_to item, confirm, method
5:     image_confirm_link_to delete_image, item, confirm, method    
6:   end

[Source]

    # File app/helpers/application_helper.rb, line 44
44:   def edit_image
45:     image "/images/edit.png", 'Edit'
46:   end

[Source]

    # File app/helpers/application_helper.rb, line 20
20:   def edit_link_to method
21:     image_link_to edit_image, method    
22:   end

Request from an iPhone or iPod touch? (Mobile Safari user agent)

[Source]

    # File app/helpers/application_helper.rb, line 75
75:   def iphone_user_agent?
76:     request.env["HTTP_USER_AGENT"] && request.env["HTTP_USER_AGENT"][/(Mobile\/.+Safari)/]
77:   end

[Source]

    # File app/helpers/application_helper.rb, line 64
64:   def link_to_format
65:     if session[:format] == 'iphone'
66:       link_to 'HTML', '?f=html'
67:     elsif session[:format] == 'html'
68:       link_to 'iPhone', '?f=iphone'
69:     else
70:       link_to 'HTML', '?f=html'
71:     end
72:   end

[Source]

    # File app/helpers/application_helper.rb, line 28
28:   def processing_image
29:     image "/images/ajax-loader.gif", 'Processing...'
30:   end

[Source]

    # File app/helpers/application_helper.rb, line 48
48:   def save_image
49:     image "/images/disk.png", 'Save'
50:   end

[Source]

    # File app/helpers/application_helper.rb, line 32
32:   def show_all_image
33:     image "/images/arrow_up.gif", 'Show All'
34:   end

[Source]

    # File app/helpers/application_helper.rb, line 12
12:   def show_all_link_to method
13:     image_link_to show_all_image, method    
14:   end

[Validate]