jatwell93 / rubyproject

1 stars 1 forks source link

RecipeController - Show - Cascading change #7

Closed Mirv closed 7 years ago

Mirv commented 7 years ago

From from the modifying of the controller flow ... really torn on how much to rip out & how much to just revert back till you have working copy.

NoMethodError in RecipesController#show undefined methodid' for nil:NilClass`

    def set_user
      # @user = User.find(params[:id])
      @user = User.find(current_user.id)
    end
Mirv commented 7 years ago

Found issue to be the chef_id foreign_key which no longer exists in db ... oops ... changed the foreign_key.

Small, but critical note ... the test suite & the log/development.log are dead. Unsure why. There are probably a serious of cascading changes based on this one that will happen next.