5 things you should steal from Ruby On Rails

5 things you should steal from Ruby On Rails

7a0e72a6f55811246bb5d9a946fd2e49?s=128

Radoslav Stankov

January 17, 2013
Tweet

Transcript

  1. 3.
  2. 4.
  3. 5.
  4. 6.
  5. 7.
  6. 8.
  7. 9.
  8. 13.

    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
  9. 14.
  10. 15.

    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
  11. 16.

    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
  12. 19.
  13. 22.
  14. 23.
  15. 26.
  16. 29.
  17. 30.
  18. 31.
  19. 33.

    ActiveRecord ~ more ~ ActionController ActionView REST XSS Protection CSRF

    Protection ActionMailer Forms ActionModel i18n Mime Rake Testing Console
  20. 34.

    ActiveRecord ~ more ~ ActionController ActionView REST XSS Protection CSRF

    Protection ActionMailer Forms ActionModel i18n Mime Rake Testing Console
  21. 35.
  22. 36.