class UsersController < SecuredController

  def edit
    user = User.find(params[:id])
    if user == current_user
      render "edit"
    else
      redirect '/'
    end
  end

end
class UsersController < SecuredController
  def edit
    @user = current_user
    render "edit"
  end
end
Fix route so it will only return the current user's edit path
Fix route so it will only return the current user's edit path
