Install Rails for Windows
Install Postgresql
Create a database in postgresql (either with the psql console or pgadmin)
Create a new user (e.g. nutridailyadmin)
Make the new user the owner of the new database
Create and fill config/database.yml according to the database user and the database name.
Windows-Installation
Install: http://railsinstaller.org/en
Rails-Version: 5.1.6 --> included
Ruby-Version: 2.3.3 --> included
Additionally install
Postgresql: 10.3
Install NodeJS
Install ImageMagick (check Install legacy utilities (e.g. convert) during installation:
https://www.imagemagick.org/download/binaries/ImageMagick-7.0.7-28-Q16-x64-dll.exe
Read about rails associations types (including polymorphic has many)
Look through data-model (link)
Look through models folder and check files
Look through db/migrate folder and check files
Rails Book, free to read:
https://www.railstutorial.org/book
Interesting cast about nested forms:
http://railscasts.com/episodes/196-nested-model-form-part-1?autoplay=true
Quickstart:
open rails console
cd to project folder
type: "rails s"
open second rails console
cd to project folder
type: "rails c"
type: User
==> Rails lists the models fields
to create a User in the database type:
User.create!(name: 'ABC', email: 'BLABLA', password: 'AA')
Helpful links:
Ruby On Rails:
https://www.youtube.com/watch?v=OHgXELONyTQ
http://guides.rubyonrails.org/association\_basics.html
https://www.youtube.com/watch?v=pPy0GQJLZUM
http://cobwwweb.com/rails-has-many-through-polymorphic-association
CSS:
https://www.youtube.com/watch?v=0afZj1G0BIE
To be discussed:
https://revs.runtime-revolution.com/saving-multiple-models-with-form-objects-and-transactions-2c26f37f7b9a