Method: Vedeu::ApplicationView#template

Defined in:
lib/vedeu/application/application_view.rb

#template(value) ⇒ String (private)

Provides the path to the template file using the base_path configuration option.

Parameters:

  • value (String)

Returns:

  • (String)


55
56
57
58
# File 'lib/vedeu/application/application_view.rb', line 55

def template(value)
  @template = Vedeu.config.base_path +
              "/app/views/templates/#{value}.erb"
end