Upgrade to Pro — share decks privately, control downloads, hide ads and more …

5 things you should steal from Ruby On Rails

5 things you should steal from Ruby On Rails

Radoslav Stankov

January 17, 2013
Tweet

More Decks by Radoslav Stankov

Other Decks in Technology

Transcript

  1. Routes ExampleApp::Application.routes.draw do resources :pages, only: %w(show) resources :products, only:

    %w(index show) match ‘search/:term’ => ‘searches#index’ root to: ‘home#show’ end
  2. REST Method Path Controller Action GET /tasks tasks index GET

    /tasks/new tasks new POST /tasks tasks create GET /tasks/:id tasks show GET /tasks/:id/edit tasks edit PUT /tasks/:id tasks update DELETE /tasks/:id tasks delete
  3. Method Path Shows Action GET /tasks/1 html show GET /tasks/1.xml

    xml show GET /tasks/1.json json show GET /tasks/1.print html show PUT /tasks/1 redirect update PUT(xhr) /tasks/1 html/js update PUT /tasks/1.json json update Url formats
  4. ActiveRecord ~ more ~ ActionController ActionView REST XSS Protection CSRF

    Protection ActionMailer Forms ActionModel i18n Mime Rake Testing Console
  5. ActiveRecord ~ more ~ ActionController ActionView REST XSS Protection CSRF

    Protection ActionMailer Forms ActionModel i18n Mime Rake Testing Console