| Class | ApplicationController |
| In: |
app/controllers/application.rb
|
| Parent: | ActionController::Base |
Idiomas disponibles a lo largo del site
# File app/controllers/application.rb, line 38
38: def locales
39: AvailableLocales::AVAILABLE_LANGUAGES
40: end
Inspired by: www.aldenta.com/2006/09/25/execute-rails-code-before-the-view-is-rendered/ Redefinición del método render para que se construyan antes los breadcrumbs
# File app/controllers/application.rb, line 337
337: def render(options = nil, extra_options = {}, &block)
338: # we want to build the breadcrums just before rendering
339: make_breadcrumbs
340:
341: # call the ActionController::Base render to show the page
342: super
343: end