Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- App
- ---
- -driver
- -credentials
- -logic
- changing db does not change codebase; abstraction layer will be the one accessed by the application
- ORM - Object Relational Mapping
- active record - library used by rails to perform object relational operations
- 1. how do we represent the table?
- 2. how do we represent fields?
- 3. how do we implement logic?
- rails generate model Person first_name:string last_name:string contact_number:string
- rake db:migrate
- rails console
- PagesController
- <td>
- <% @people.each do |p| %>
- <% end %>
- @person = Person.find(params[:id])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement