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

Build Realtime Apps with Ruby & Pakyow

Build Realtime Apps with Ruby & Pakyow

Presented at RailsConf 2016. Full presentation (with screencasts) available here: https://www.dropbox.com/s/naa4r6957z4ic27/railsconf.key?dl=0

Bryan Powell

May 06, 2016
Tweet

Other Decks in Programming

Transcript

  1. <article data-scope="post"> <p data-prop="body"> Comment Goes Here </p> </article> <%

    @posts.each do |post| %> <article> <p> <%= post.body %> </p> </article> <% end %>
  2. <article data-scope="post"> <p data-prop="body"> Comment Goes Here </p> </article> {

    body: 'foo' } < <article data-scope="post"> <p data-prop="body"> foo </p> </article>
  3. <article data-scope="post"> <p data-prop="body"> Comment Goes Here </p> </article> [

    { body: 'foo' }, { body: 'bar' } ] < <article data-scope="post"> <p data-prop="body"> foo </p> </article> <article data-scope="post"> <p data-prop="body"> bar </p> </article>
  4. <article data-scope="post"> <p data-prop="body"> Comment Goes Here </p> </article> {

    body: 'foo' } < <article data-scope="post"> <p data-prop="body"> foo </p> </article>
  5. <article data-scope="post"> <p data-prop="body"> foo </p> </article> [ { body:

    'foo' }, { body: 'bar' } ] < <article data-scope="post"> <p data-prop="body"> foo </p> </article> <article data-scope="post"> <p data-prop="body"> bar </p> </article>