Slide 1

Slide 1 text

Ruby on Rails a primer

Slide 2

Slide 2 text

RUBY on Rails iS... an opinionated web application development framework

Slide 3

Slide 3 text

Framework

Slide 4

Slide 4 text

web application By any other name — Jeremy Keith http://adactio.com/journal/6246/

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

opinionated

Slide 9

Slide 9 text

What does Rails Give you?

Slide 10

Slide 10 text

1. Security CSRF, SQL Injection, XSS

Slide 11

Slide 11 text

2. Form BUilders Succinct & Consistent Forms

Slide 12

Slide 12 text

Title Body

Slide 13

Slide 13 text

<%= form_for(@post) do |f| %> <%= f.label :title %> <%= f.text_field :title %> <%= f.label :body %> <%= f.text_area :body %> <%= f.submit %> <% end %>

Slide 14

Slide 14 text

<%= simple_form_for(@post) do |f| %> <%= f.input :title %> <%= f.input :body %> <%= f.button :submit %> <% end %> simple_form https://github.com/plataformatec/simple_form

Slide 15

Slide 15 text

3. REstful Router Consistent URLs

Slide 16

Slide 16 text

GET /posts GET /posts/1 GET /posts/new POST /posts GET /posts/1/edit PUT /posts/1 DELETE /posts/1

Slide 17

Slide 17 text

resources :posts

Slide 18

Slide 18 text

4. Asset Pipeline Best Practices for CSS & Javascript

Slide 19

Slide 19 text

5. Powerful ORM Active Record

Slide 20

Slide 20 text

has_many :comments

Slide 21

Slide 21 text

validates_presence_of :title