Class: MissingI18n::LocalesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- MissingI18n::LocalesController
- Defined in:
- app/controllers/missing_i18n/locales_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 |
# File 'app/controllers/missing_i18n/locales_controller.rb', line 3 def index @locales = Locale.all end |
#show ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/missing_i18n/locales_controller.rb', line 7 def show @locale = Locale.new(params[:id]) respond_to do |format| format.html format.yaml { render :text => @locale.to_yaml, :content_type => 'text/yaml' } end end |