$ rails g model User
belongs_to
has_one
<div class="gender_container"> | |
<%= f.collection_radio_buttons :gender, [["F", t("collection.gender.female_html") ], ["M", t("collection.gender.male_html")]], :first, :last, label: false, wrapper: false %> | |
</div> |
# ... | |
gem 'carrierwave' | |
gem 'fog', '~> 1.0.0' # Need to specify version, as carrierwave references older (0.9.0) which doesn't allow configuration of Rackspace UK Auth URL |
define(["marionette", "backbone", "templates/templates"], function(Marionette, Backbone, templates){ | |
var value; | |
var field; | |
var alert_label; | |
var url = "http://api.localhost.dev:3000/v1"; | |
//var url = "http://api.bitsnut.com/v1"; | |
var Model = Backbone.Model.extend({ | |
defaults: { |
<div class="Modal-Background toggle-Modal"> | |
<div class="Center-Block Absolute-Center is-Fixed is-Variable Modal" id="Fixed-Modal"> | |
<div class="Center-Content"> | |
<h4 class="Title">Absolute Center.</h4> | |
<p>This box is absolutely centered within the viewport, horizontally and vertically, using only CSS.</p> | |
<p><a href="#" class="Shaw-Button trigger-Resize">Resize Me!</a></p> | |
<p><a href="#" class="Shaw-Button toggle-Modal">Close Modal</a></p> |
<!-- We want to center our <ul> into the container REGARDLESS of the number of <li> inside our <ul> --> | |
<h1 id="title">How to center floating elements</h1> | |
<p id="subtitle">Without setting a width <b>&</b> Regardless of the number of children</p> | |
<section id="container"> | |
<div class="float_center"> | |
<ul class="child"> | |
<li><a href="#">link 1</a></li> | |
<li><a href="#">link 2</a></li> |
<div class="container"> | |
<div class="center_div"> | |
</div> | |
</div> | |
.container{ | |
float: left; |
.container | |
{ | |
position: absolute; | |
width:40%; | |
margin: 0 auto; | |
left: 0; | |
right: 0; | |
} | |
// set left, right to 0 and specify width! |
# Example nginx + git HTTP Smart mode (git-http-backend) + HTTP Authentication + HTTPS redirect | |
# jeroen@massar.ch - http://jeroen.massar.ch | |
server { | |
listen 192.0.1.1:80; | |
listen [2001:db8::1]:80; | |
# Redirect all non-HTTPS traffic to the HTTPS variant | |
return 301 https://$host$request_uri; | |
} |