Module: Merb::MerbAdmin::ApplicationHelper
- Included in:
- MerbAdmin::Application
- Defined in:
- app/helpers/application_helper.rb
Instance Method Summary collapse
-
#app_path_for(type, *segments) ⇒ String
Construct an app-level path.
-
#image_path(*segments) ⇒ String
A path relative to the public directory, with added segments.
-
#javascript_path(*segments) ⇒ String
A path relative to the public directory, with added segments.
-
#public_path_for(type, *segments) ⇒ String
Construct a path relative to the public directory.
-
#slice_path_for(type, *segments) ⇒ String
Construct a slice-level path.
-
#stylesheet_path(*segments) ⇒ String
A path relative to the public directory, with added segments.
Instance Method Details
#app_path_for(type, *segments) ⇒ String
Construct an app-level path.
47 48 49 |
# File 'app/helpers/application_helper.rb', line 47 def app_path_for(type, *segments) ::MerbAdmin.app_path_for(type, *segments) end |
#image_path(*segments) ⇒ String
Returns A path relative to the public directory, with added segments.
9 10 11 |
# File 'app/helpers/application_helper.rb', line 9 def image_path(*segments) public_path_for(:image, *segments) end |
#javascript_path(*segments) ⇒ String
Returns A path relative to the public directory, with added segments.
17 18 19 |
# File 'app/helpers/application_helper.rb', line 17 def javascript_path(*segments) public_path_for(:javascript, *segments) end |
#public_path_for(type, *segments) ⇒ String
Construct a path relative to the public directory
36 37 38 |
# File 'app/helpers/application_helper.rb', line 36 def public_path_for(type, *segments) ::MerbAdmin.public_path_for(type, *segments) end |
#slice_path_for(type, *segments) ⇒ String
Construct a slice-level path.
58 59 60 |
# File 'app/helpers/application_helper.rb', line 58 def slice_path_for(type, *segments) ::MerbAdmin.slice_path_for(type, *segments) end |
#stylesheet_path(*segments) ⇒ String
Returns A path relative to the public directory, with added segments.
25 26 27 |
# File 'app/helpers/application_helper.rb', line 25 def stylesheet_path(*segments) public_path_for(:stylesheet, *segments) end |