Skip to content

vandosant/rails-practice-kittens

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rails Practice

Setup

  • bundle
  • rake db:create db:migrate db:seed
  • rails s

You can run specs with:

  • rspec

Note: email/password combinations for existing users populated by rake db:seed can be found in the db/seeds.rb file.

Stories

You have kittens. You have categories. You must categorize kittens.

Users can add categories to kittens

When I click on the image of a kitten
Then I should see a form where I can add a category to a kitten
And when I select a category and click "Add Category"
Then I should see the category appear underneath the kitten
And categories should appear in alphabetical order

Users must enter a category when categorizing kittens

When I try to add a category
And I leave the category blank
Then I should see a validation message that the category can't be blank

Users should not be able to add the same category twice

When I try to add a category the second time to the same kitten
Then I should see a validation message that the categorization has already been taken

Wireframes

Index

Add Category to Kitten

Validation Message

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 70.2%
  • CSS 29.6%
  • JavaScript 0.2%