Ruby on Rails Basic
Introduction
Syntax
Operators
Assign a value
Fixnum
String
Hash
Array
.nil? .blank? .empty? .present? .any? and .present?
class and instance variables
order and sort_by
i18n
.. vs ...
Routes
namespace, scope and module
only
Singular or plural controller
overrides the default resource identifier :id
Class
Date\/Time
Variables
put vs post
File
getter and setter
rails command line
rails generate(g)
%Q, %q, %W, %w, %x, %r, %s
MD5
is_a?, kind_of? and instance_of?
Exceptions
Blocks
Loop
random
Regular Expressions
prepend
Concern
delegate
try
inquiry
alias vs alias_method
yield
case when else
public, protected and private
unless
each
flash vs flash.now
Keyword Arguments
Module
mattr_accessor
respond_to?
Digest
OpenStruct vs. Struct
find where a method is defined and its owner
raise and fail
include vs require
Active Record
SQL Injection
delete_all vs destroy_all
errors
scope
includes vs joins
pluck and select
Optimistic Locking
Single Table Inheritance
where.not
Migrations
Foreign Keys
create join table
validates
Strong parameters
has_and_belongs_to_many
enum
Polymorphic
or
has_secure_password
inverse_of
find_each
confirmation
reload
Action View
sanitize, raw, html_safe, h, html_escape
disable utf8 hidden field
disable authenticity token
select_tag
j render partial
Action Controller
render\/json
before_action
Active Support
ActiveSupport::Callbacks
Action Mailer
Action Dispatch
request.method vs request.request_method
RSpec
built in matchers
describe, context and it
Model
mock/stub
be true, be truthy, be false and be_falsey
JSON comparation
Test a file upload
Test api
check arrays
Subject
authentication
Shared examples
some cheetsheets
yield matcher
controller
compare time
CSRF protection from remote tags, format: :js
it vs specify
test to see if a method was called
expect multiple changes
expect change to something
follow_redirect!
ActiveJob::Base.queue_adapter
VCR debug_logger
Web service
Cross-Origin Resource Sharing
Image\/file upload web service
Authentication
Versioning
Git Daily
push
log
modify the latest local commit (before push)
cherry
Gem
rspec-rails
settingslogic
cucumber
: matter?
data table
Mocking and Stubbing with Cucumber
bad URI
json_spec
guard
spring
rb-fsevent
paper_trail
rmagick
email-spec
ffaker
factory-girl-rails
shoulda
jbuilder
bullet
JWT
pry-byebug
responders
nyan-cat-formatter
auto_strip_attributes
bcrypt
fuubar
rspec-its
friendly_id
Paperclip
will_paginate
vcr
Curb
Scenarios
Deployment
Wirte a Gem
Advance
decorator vs presenter
Multiple Table Inheritance
Metaprogramming
Singleton class
Watching open source projects
ActionDispatch
Powered by
GitBook
Metaprogramming
Metaprogramming
Reference
Metaprogramming Ruby
7 Deadly Sins of Ruby Metaprogramming
Metaprogramming in Ruby
Metaprogramming in Ruby: It's All About the Self
How to dynamic update columns in Ruby on Rails
method define_method
Method: Module#define_method
instance_eval
results matching "
"
No results matching "
"