forked from saurabh/orbit4-5
fixed attributes fields
This commit is contained in:
parent
619fef44f5
commit
ff81470c41
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue