A Web Application designed to manage clients, tickets and bills, with interaction between provider and clients.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
MorningPeak/RailsMinidoc.md

893 B

Rails minidoc

Guide documentation : visit

The RoR Project works with some main parts :

  • /config/routes.rb : the routing. The url accessible from http://... will call a Controller.method
  • /app/controllers/* : the controllers. they are the mind using the parameters and choosing the render to use
  • /app/models/* : the modelisation of the database
  • /app/views// : the views rendered after the controller
  • /db/migrate/* : the migrations. They represents the state of the databases
  • /app/assets/ : all stylesheets css, javascript, images

Create a new table, upgrade, etc.

Create a table

Creating a new table = Create a new migration. Use the command like rails generate Table data1:string data2:integer etc.

Change an existing table

Each changement on the database needs a migration. rails g migration.