What is Ruby on Rails? When is it the right tool for the job? What powerful features can you use in all of your web applications?
Ruby on Railsa primer
View Slide
RUBY on Rails iS...an opinionated web applicationdevelopment framework
Framework
web applicationBy any other name — Jeremy Keithhttp://adactio.com/journal/6246/
opinionated
What does Rails Giveyou?
1. SecurityCSRF, SQL Injection, XSS
2. Form BUildersSuccinct & Consistent Forms
TitleBody
<%= form_for(@post) do |f| %><%= f.label :title %><%= f.text_field :title %><%= f.label :body %><%= f.text_area :body %><%= f.submit %><% end %>
<%= simple_form_for(@post) do |f| %><%= f.input :title %><%= f.input :body %><%= f.button :submit %><% end %>simple_formhttps://github.com/plataformatec/simple_form
3. REstful RouterConsistent URLs
GET /postsGET /posts/1GET /posts/newPOST /postsGET /posts/1/editPUT /posts/1DELETE /posts/1
resources :posts
4. Asset PipelineBest Practices for CSS &Javascript
5. Powerful ORMActive Record
has_many :comments
validates_presence_of :title