diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 36f31c6b8..b5e11f86a 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -79,6 +79,11 @@ class UsersController < ApplicationController @step = ((params[:step].to_i>0)&&(params[:step].to_i<5)) ? params[:step].to_i : 1 @step ||= 1 + + if @step == 4 + @user.getting_started = false + @user.save + end render "users/getting_started" end diff --git a/app/views/users/getting_started/_step_4.html.haml b/app/views/users/getting_started/_step_4.html.haml index b5ca7b274..fed321aea 100644 --- a/app/views/users/getting_started/_step_4.html.haml +++ b/app/views/users/getting_started/_step_4.html.haml @@ -3,14 +3,6 @@ -# the COPYRIGHT file. -- if current_user.getting_started == true - :javascript - $.ajax({ - type: "PUT", - url: "/users/#{current_user.id}", - data: {"user":{"getting_started":'false'}} - }) - %h1 = "You're all set up, #{current_user.person.profile.first_name}!" .description