gluttonberg/app/controllers/settings/locales.rb
def prepare_to_edit
        locale_opts = {:order => [:name.desc]}
        locale_opts[:id.not] = @locale.id unless @locale.new_record?
        @locales  = Locale.all(locale_opts)
        @dialects = Dialect.all
      end
# Grabs the various model collections we need when editing or updating a record
Grabs the various model collections we need when editing or updating a record
Grabs the various model collections we need when editing or updating a record
def prepare_to_edit
        locale_opts = {:order => [:name.desc]}
        locale_opts[:id.not] = @locale.id unless @locale.new_record?
        @locales  = Locale.all(locale_opts)
        @dialects = Dialect.all
      end
def prepare_to_edit locale_opts = { :order => [ :name . desc ] } locale_opts [ :id . not ] = @locale . id unless @locale . new_record? @locales = Locale . all ( locale_opts ) @dialects = Dialect . all end
Grabs the various model collections we need when editing or updating a record
Grabs the various model collections we need when editing or updating a record