Thanks for your video, @kobaltz, but I have some problems with your codes , I used rails 4.2.8 , ruby 2.5.0 .
In my `users_controller.rb ` , I write the `update `like this :
```
def update
@user = User.find(params[:id])
if @user.update_attributes(user_params)
if params[:user][:picture].present?
render :crop
else
redirect_to @user, notice: "Success update"
end
else
render :edit
end
end
```
and then I write the `user_params` like this :
```
private
def set_user
@user = User.find(params[:id])
end
def user_params
params.require(:user).permit(:name, :email, :phone, :password, :phoneMes, :picture, :crop_x, :crop_y, :crop_w, :crop_h, :password_confirmation)
end
```
But when I upload the image , it always jump to `edit.html.erb` without jump to `crop.html.erb`, this is for why ? Could you help me ? I had searched a long time , but it seems this no answer. Thanks so much ,@kobaltz.