More Related Content Similar to Marcel Molina Jr. Presentation Similar to Marcel Molina Jr. Presentation (20) Marcel Molina Jr. Presentation3. Member of Rails Core
Thomas Fuchs Jeremy Kemper Michael Koziarski
Jamis Buck
Tobias Lütke Sam Stephenson
Rick Olson Nicholas Seckar
Some of the people you trust your business to...
3 7. Typical RJS
app/controllers/articles_controller.rb
7 11. Wrong scope!
Oops
app/controllers/articles_controller.rb
11 13. This works
app/controllers/articles_controller.rb
13 20. Maintenance headache
public/javascripts/application.js
app/controllers/articles_controller.rb
app/helpers/articles_helper.rb
20 32. Wrap it up in a new template type
actionpack/lib/action_view/base.rb
32 35. << just adds raw JavaScript to the stream
is the same as
35 42. No use obviates reuse
app/helpers/application_helper.rb public/stylesheets/screen.css
app/views/articles/edit.rhtml
42