Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- get '/posts/:id' do
- # Render with or without a layout depending
- # on request#xhr?. Useful for rendering regular
- # requests and also partial updates like:
- # $("#post").load('/posts/1')
- haml :'posts/show', :layout => !request.xhr?
- end
Add Comment
Please, Sign In to add comment