- https://github.com/ruby/irb (Interactive terminal ruby execution env)
- https://rubygems.org (Gems for Ruby and Ruby on Rails)
- https://rubyonrails.org/ (Rails overview)
- https://github.com/rails/rails (Rails source code)
- https://github.com/heartcombo/devise (Ex: Devise gem GitHub repository)
- https://rvm.io/ (Ruby installation) (for gpg:
brew install gpg
& replacegpg2
withgpg
)
MVC - Model, View, Controller
General flow of Rails application:
-
Request made from browser
-
Request received at router of rails application
-
Request routed to appropriate action in a controller
-
Controller#action either renders a view template or communicates with model
-
Model communicates with database
-
Model sends back information to controller
-
Controller renders view
- User
- Post
- Comment
...etc
- home.html.erb
- profile.html.erb
- friends.html.erb
- my_posts.html.erc
...etc
- user_controller
- post_controller
- comment_controller
...etc