fixed attributes fields

This commit is contained in:
Saurabh Bhatia 2014-05-26 11:05:29 +08:00
parent 619fef44f5
commit ff81470c41
3 changed files with 2 additions and 4 deletions

View File

@ -430,7 +430,7 @@ protected
get_basic_field_name_base + "[value]" get_basic_field_name_base + "[value]"
end end
def label def form_label
label_tag(key,title,:class=>"control-label muted",:func => "field_label") label_tag(key,title,:class=>"control-label muted",:func => "field_label")
end end

View File

@ -18,7 +18,7 @@ class I18nVariable
end end
def self.from_locale(locale) def self.from_locale(locale)
I18nVariable.find_by(:key => locale)[I18n.locale] I18nVariable.find_by(key: locale)[I18n.locale]
end end
end end

View File

@ -40,8 +40,6 @@ Orbit::Application.routes.draw do
scope "(:locale)", locale: Regexp.new(locales.join("|")) do scope "(:locale)", locale: Regexp.new(locales.join("|")) do
resources :member_profiles
resources :users do resources :users do
collection do collection do
get 'confirm_user' get 'confirm_user'