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. Radoslav Stankov 17/01/2013 5 things you should steal from Ruby

    On Rails
  2. Кой съм аз? @rstankov http://rstankov.com http://github.com/rstankov

  3. None
  4. None
  5. None
  6. None
  7. None
  8. None
  9. None
  10. I have a plan!

  11. 1. Routes 2. Folders 3. Migrations 4. Generators 5. Asset

    pipeline Agenda
  12. 1. Routes 2. Folders 3. Migrations 4. Generators 5. Asset

    pipeline Agenda
  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
  14. None
  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
  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
  17. 1. Routes 2. Folders 3. Migrations 4. Generators 5. Asset

    pipeline Agenda
  18. 1. Routes 2. Folders 3. Migrations 4. Generators 5. Asset

    pipeline Agenda
  19. None
  20. 1. Routes 2. Folders 3. Migrations 4. Generators 5. Asset

    pipeline Agenda
  21. 1. Routes 2. Folders 3. Migrations 4. Generators 5. Asset

    pipeline Agenda
  22. None
  23. None
  24. 1. Routes 2. Folders 3. Migrations 4. Generators 5. Asset

    pipeline Agenda
  25. 1. Routes 2. Folders 3. Migrations 4. Generators 5. Asset

    pipeline Agenda
  26. None
  27. 1. Routes 2. Folders 3. Migrations 4. Generators 5. Asset

    pipeline Agenda
  28. 1. Routes 2. Folders 3. Migrations 4. Generators 5. Asset

    pipeline Agenda
  29. None
  30. None
  31. None
  32. 1. Routes 2. Folders 3. Migrations 4. Generators 5. Asset

    pipeline Agenda
  33. ActiveRecord ~ more ~ ActionController ActionView REST XSS Protection CSRF

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

    Protection ActionMailer Forms ActionModel i18n Mime Rake Testing Console
  35. None
  36. None
  37. @rstankov Благодаря за вниманието :)