- Carefully do the official [tutorial][].
- Read the official guide to [main concepts][].
- Read the official [advanced guides][].
- Watch [building React from scratch][] to get an idea of how React actually works (this covers the "stack" reconciler which was used in React 15 and earlier).
- Go through the [React "fiber" architecture][] which is the default reconciler since React 16.
- Go crazy, build your own projects, and stop doing React tutorials!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Admin::AdminPostsController < InheritedResources::Base | |
layout 'admin' | |
before_filter :require_login | |
before_action :set_post | |
before_action :set_branches | |
before_action :set_sections | |
load_and_authorize_resource | |
def index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PostController < ApplicationController | |
before_action :set_post | |
before_action :set_active_posts, only: [:create, :update] | |
def show | |
@post = @posts.find_by(slug: params[:slug]) | |
@author = @post.author | |
if !@post.present? | |
render "errors/404.html", status: :not_found |
You're taking your first steps into Ruby
A good introduction to programming in general. Easy on newer programmers.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin" | |
export PATH="/usr/local/opt/python/bin:$PATH" | |
export GPG_TTY=$(tty) | |
# export START="$HOME/a" | |
# if [[ $PWD == $HOME ]]; then | |
# cd $START | |
# fi | |
# alias ls='ls -F --color --show-control-chars' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP status code symbols for Rails | |
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
Status Code Symbol | |
1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing |