forked from AdaGold/rails-zoo
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Queues - Anna Barklund - Rails Zoo #31
Open
amb54
wants to merge
24
commits into
Ada-C7:master
Choose a base branch
from
amb54:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…l. Migrated the model. Added 5 animals to the database.
…Created a private method animal_params in the controller. Dreated a index.html.erb file in views/animals. The index view creates a simple list of the animals in the browser.
…r to find specific animal. Created a new html.erb file in view called show. The show view presents an animal with a specific id. Created a link in the index-view to the individual animal view.
… as new_animal and a link in the index view. Wrote a method new in the controller that creates a new instance without parameters. Created a view new.html.erb with a html form. Wrote a post in routes and a method create in the controller.
…ex view. Two routes were added (get animals/:id/edit and patch animals/:id). Two action methods were added to the controller (edit and update). Two views were added (edit.html.erb and _form.html.erb). A formhelper were added to _form, and partial was used in both the edit view and the new view. A link was added into the loop in the index view.
…ded to routes. The action method destroy was added to the controller. A link with confirm was added to the loop in the index view.
…_form to edit respectively new. Changed the link in edit to link to the latest path. To do this the action methods edit in the controller were modified to save the previous path and the method update redirects to the saved path.
…n main. Updated application.css with rule set header.
…th correspondent css to make the list view as three columns. Added 20% padding lefte and right for the main.
…he font to the google font Bubblegum. Changed the main background color.
…mage button to the header with subsequent changes in the application.css. Added a lorem ipsum text to the show view.
…ts. Added a button image to the edit view.
…column image to the data base. Made some minor corrections to the link buttons in the show view.
…_tag. Changed the class of the buttons in show to button_image
… the image_tag for the image. Removed the height for the buttons from the erb to the css.
…age text for the delete button. Shortened the Lorem ipsum text in the show view.
Rails ZooWhat We're Looking For
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rails Zoo
Congratulations! You're submitting your assignment!
Comprehension Questions