%= form_for(@auth_user, url: @auth_user.new_record? ? admin_create_users_path : admin_create_user_path({:id => @auth_user.id.to_s}), method: @auth_user.new_record? ? :post : :put, namespace: @auth_user.id.to_s, as: :user) do |f| %> <%= render :partial => "auth/shared/object_errors.html.erb", locals: {active_model_object: @auth_user} %>