Skip to content

[SEED] [ASSETS] [NAVBAR] Seed creation + Navbar creation

Charlotte Flament requested to merge development into staging

Part 1 SEED

create a seed for users

create a seed for composts

  • create a small pictures library
  • create a bench of random composts in Paris

Changes

  • app/assets/pictures/compost_pictures/....jpg : store 7 compost pictures named "compost_00(1..7).jpg"
  • db/seed.rb : added User & Compost cleanup + User & Compost seed creation
  • app/views/composts/show.html.erb : added picture visualization in the view

Tests

  • execute rails db:seed : the seed is proceeded successfully, deleting current items and seeding db with new items (users and composts)
  • from the "/composts" view, open de show view of a nex compost : the picture

Links

Part 2 : Navbar

create a Navbar

  • first link sends to root
  • pre requisite for bootstrap integration

tests

  • navbar is displayed on all pages
  • navbar is responsive
  • navbar first link redirects to root

Merge request reports