Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

yukideluxe/catbook

Repository files navigation

CatBook powered by IronHack

Because cats, as social beings, also deserve a place to share their experiences.

Step by step implementation

  1. rails new catbook
  2. Use rspec instead of minitest - Rspec
  3. Use factory_girl - FactoryGirl
  4. Use Postgres as default database - Configuring a Database - Rails Guides
  5. Basic cat model rails generate model cat
  6. Bower and boostrap - Bower
  7. Create basic scaffold for listing, editing and showing cats
  • Security pitfalls are on purpose included here in order the students to find them
  • Included kaminari pagination - Kaminari
  1. Introduce sightly advanced association FollowerRelation - FrontMatter rails tutorial
  2. Do 'heavy' queries to render followers in cats#show and cats#index
  3. Generate rake task to seed followers rails g task catbook seed_follower_relations (Note: Could have been also done in the seeds file? Is is better like this?)

References