~/talk

You've got a Sinatra on your Rails

Talkat RailsConf 2013 · 2013-04-29..05-02· [ruby-on-rails]
slides:none on file

Builds Sinatra features into Rails and demonstrates they actually work: a single-file Rails app (~27 lines) boots and responds, a rails_natura 75 lines implementation exposes Sinatra-style get/post routes and mounts as a Rack app, middleware logging shows requests traverse at least three middleware stacks (web server, Rails app, controller), and replacing the ActionView context lets templates execute in the controller so controller methods are available in views without declaring helpers — all examples run successfully.

AI-written summary · about

  1. 0:00Intro
  2. 0:47Hacking Rails for fun and profit
  3. 2:22Single-file Rails apps
  4. 7:13class Application Rails:: Application
  5. 14:02Rack and the Rails router
  6. 23:08Middleware stacks
  7. 29:34Rendering stack
  8. 29:51class MyApp Sinatra::Base def hello "Hello World!" end end
  9. 33:23View paths hold filesystem paths finding templates
  10. 34:14View paths hold resolvers
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.