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

Explorando as views Rails

Explorando as views Rails

Uma pequena techtalk apresentada na HE:labs sobre como melhorar as rails views usando Orientação Orientação a objetos.

Rodrigo Pinto

November 16, 2012
Tweet

More Decks by Rodrigo Pinto

Other Decks in Programming

Transcript

  1. "In Ruby, that's objects, and there's a good reason for

    that: functions don't provide a sufficient amount of power to tackle hard problems." Steve Klabnik http://blog.steveklabnik.com/posts/2011-09-09-better-ruby-presenters
  2. Soluções • Seu Decorator Sua classe ruby PORO`s • gem

    'draper' https://github.com/drapergem/draper • gem 'simple_presenter' https://github.com/fnando/simple_presenter
  3. • Livros • Object on Rails - Avdi Grimm ◦

    http://objectsonrails.com/ • The Rails Views - Bruce Willians ◦ http://pragprog.com/book/warv/the-rails-view Continue os estudos
  4. • Posts e Videos • Separeted Presentation - M. Fowler

    ◦ http://martinfowler. com/eaaDev/SeparatedPresentation.html • Hexagonal Rails - Matt Wynne ◦ http://www.youtube.com/watch?v=CGN4RFkhH2M Continue os estudos
  5. • The Secret to Rails OO ◦ http://blog.steveklabnik.com/posts/2011-09-06- the-secret-to-rails-oo-design •

    Better Ruby Presenters ◦ http://blog.steveklabnik.com/posts/2011-09-09- better-ruby-presenters Continue os estudos