new code for attribute fields and values for new member interface
This commit is contained in:
1 parent
e16a27601d
commit
1ce7f00084
17 files changed
+226
-118
No files matched your search
@@ -32,6 +32,7 @@ class Admin::InfosController < ApplicationController
|
||||
|
||||
def update
|
||||
@attribute = Info.find(params[:id])
|
||||
# binding.pry
|
||||
@attribute.update_attributes(params[:info])
|
||||
respond_to do |format|
|
||||
format.html { redirect_to :action => :index }
|
||||
|
||||
@@ -47,7 +47,6 @@ class Admin::UsersNewInterfaceController < ApplicationController
|
||||
@staff_data.push({:name => att_val.attribute_field.title,:value => att_val.get_value_by_locale(I18n.locale) }) if att_val.attribute_field.role.key=="staff_data"rescue false
|
||||
}
|
||||
|
||||
# binding.pry
|
||||
# @user.attribute_values.each{|att_val|
|
||||
# @teacher_data.push({:name => att_val.attribute_field.title,:value =>att_val[I18n.locale]})
|
||||
# }
|
||||
|
||||
Reference in new issue
Block a user