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]"
end
def label
def form_label
label_tag(key,title,:class=>"control-label muted",:func => "field_label")
end

View File

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

View File

@ -39,8 +39,6 @@ Orbit::Application.routes.draw do
locales = Site.first.in_use_locales rescue I18n.available_locales
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
resources :member_profiles
resources :users do
collection do