Skip to content

Instantly share code, notes, and snippets.

@duarme
duarme / _blog.html
Last active December 16, 2015 08:04
Zurb Foundation 5 Blog Template
<!-- Nav Bar -->
<div class="row">
<div class="large-12 columns">
<div class="nav-bar right">
<ul class="button-group">
<li><a href="#" class="button">Link 1</a></li>
<li><a href="#" class="button">Link 2</a></li>
<li><a href="#" class="button">Link 3</a></li>
<li><a href="#" class="button">Link 4</a></li>
if params['signed_request']
parsed_signed_request = @fb_oauth.parse_signed_request(params['signed_request'])
session[:signed_request] ||= parsed_signed_request
fb_id = parsed_signed_request['user_id']
end
@duarme
duarme / params_bugged.yaml
Created April 24, 2012 06:43
Possible Rails bug related to deep nesting resource forms - github.com/rails/rails/issues/5937
order:
customer_name: My Self
duedate: 2012-04-25 09:24:00.000000
preparations_attributes:
- quantity: "1"
description: custom recipe
kind: custom
cooked: ""
- cooked: "1"
recipe_id: "9"