Class: MissingI18n::LocalesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/missing_i18n/locales_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
# File 'app/controllers/missing_i18n/locales_controller.rb', line 3

def index
  @locales = Locale.all
end

#showObject



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