My-Solar-Garden / rails_backend

Application that allows users to maximize their garden’s efficiency and carbon sequestration. Users can track the health of their gardens through light, temperature, and moisture sensors connected to RaspberryPis.
1 stars 1 forks source link

Edits plant creation so that plants get same id in our database that … #70

Closed drewwilliams5280 closed 4 years ago

drewwilliams5280 commented 4 years ago

…they have in the API

69

This way makes sense to me since I believe to stay ReSTful, we need to keep the :id param as the gardens id, and therefore can't pass it in with the plant_params method. But I could be wrong about that.