Guest User

Untitled

a guest
Feb 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. get '/posts/:id' do
  2. # Render with or without a layout depending
  3. # on request#xhr?. Useful for rendering regular
  4. # requests and also partial updates like:
  5. # $("#post").load('/posts/1')
  6. haml :'posts/show', :layout => !request.xhr?
  7. end
Add Comment
Please, Sign In to add comment