diff --git a/app/controllers/my_profile/profile_editor_controller.rb b/app/controllers/my_profile/profile_editor_controller.rb index 3ee21a3..0ee1bec 100644 --- a/app/controllers/my_profile/profile_editor_controller.rb +++ b/app/controllers/my_profile/profile_editor_controller.rb @@ -11,6 +11,9 @@ class ProfileEditorController < MyProfileController # edits the profile info (posts back) def edit + + #raise params.inspect + @profile_data = profile @possible_domains = profile.possible_domains if request.post? diff --git a/app/controllers/public/account_controller.rb b/app/controllers/public/account_controller.rb index ea9a9cf..946a626 100644 --- a/app/controllers/public/account_controller.rb +++ b/app/controllers/public/account_controller.rb @@ -66,12 +66,9 @@ class AccountController < ApplicationController end def custom_fields_for_template - custom_fields ||= environment.people.templates.find(params[:template_id]).custom_fields.keys - #raise custom_fields.inspect - - custom_fields = [{ :name => "custom_field_4", :label => "bli"}, - { :name => "custom_field_5", :label => "ajsdfh"}, - { :name => "custom_field_6", :label => "ytytyty"}] + custom_fields ||= environment.people.templates.find(params[:template_id]).custom_fields.map {|k,v| + { :name => k, :label => v[:label] } + } render :text => {:ok => true, :custom_fields => custom_fields}.to_json end diff --git a/app/views/account/_signup_form.html.erb b/app/views/account/_signup_form.html.erb index ff2f46f..a926d26 100644 --- a/app/views/account/_signup_form.html.erb +++ b/app/views/account/_signup_form.html.erb @@ -29,37 +29,6 @@