Skip to content

Create Plant App #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

ASPhillips8
Copy link

Updated Gemfile to add gem and update rails version. Defined model associations of house_plants belong_to room and rooms has_many house_plants. Added routes for views. Plant index view has list of all the plant by plant_type and link to the plant's show page. Created plant show page that displays plant info and link to room in which it is associated with. Created a rooms index view that displays all the rooms by name as a link to each room show page. Created
Screenshot 2024-08-22 at 11 22 44 AM
Screenshot 2024-08-22 at 11 19 07 AM
Screenshot 2024-08-22 at 11 22 29 AM
Screenshot 2024-08-22 at 11 18 41 AM
Screenshot 2024-08-22 at 11 18 29 AM
room show page that provide room details include a list of the rooms plants (i added a link to the plant show page... not asked). Create a plant form that added new plant to the collection and has validations that produce list on page if plant is not created correctly. Added navigation links as extra.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants