added has_many :timeframes
  has_many :locations, through: :timeframes
 to user model
I will now change the locations controller to call User.location.new
In locations_controller, if my database is empty for Location.all, I hit the error that I can't call for a param from a nilclass.
About to begin the refactor
About to begin the refactor
Regernerated API_keys
Changed locations controller so that it is cleaner now. Added code in my view so that I have a default if @location == nil; Now I will drop my table to test that out.