Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 466 Bytes

Rails.md

File metadata and controls

14 lines (10 loc) · 466 Bytes

Rails match ':controller(/:action(/:id(.:format)))'
matches everything to a controller, action, id, format

Redirect: changes the url instead of just rendering something else
redirect_to (:action => "other hello")

params: contains all GET and POST variables

active record is a commonly used ensign pattern for relational db
ActiveRecord: rails implementation of the active record pattern
Retrieve/manipulate database data as objects

ActiveRelation (ARel)