Skip to content

Instantly share code, notes, and snippets.

View jaykilleen's full-sized avatar

Jay Killeen jaykilleen

View GitHub Profile
@jaykilleen
jaykilleen / devise_registrations_edit.html.erb
Last active July 27, 2016 12:58
Bootstrapping Devise Edit Registration View on Rails 4.2.0 with Bootstrap 3
<div class="container">
<div class="row">
<div class="col-sm-4 col-sm-offset-4">
<div class="light-well">
<h2 class="page-header text-center">Edit <%= resource_name.to_s.humanize %></h2>
<%= form_for resource, as: resource_name, url: registration_path(resource_name), html: { method: :put },
html: { class: "form-horizontal center"} do |f| %>
<div class="form-group">
@jaykilleen
jaykilleen / devise_registrations_new.html.erb
Created January 20, 2015 04:23
Bootstrapping Devise New Registration View on Rails 4.2.0 with Bootstrap 3
<div class="container">
<div class="row">
<div class="col-sm-4 col-sm-offset-4">
<div class="light-well">
<h2 class="page-header text-center">Sign Up</h2>
<%= form_for resource, as: resource_name, url: registration_path(resource_name),
html: { class: "form-horizontal center"} do |f| %>
@jaykilleen
jaykilleen / devise_sessions_new.html.erb
Created January 20, 2015 04:21
Bootstrapping Devise New Session View on Rails 4.2.0 with Bootstrap 3
<div class="container">
<div class="row">
<div class="col-sm-4 col-sm-offset-4">
<div class="light-well">
<h2 class="page-header text-center">Welcome Back!</h2>
<%= form_for resource, as: resource_name, url: session_path(resource_name),
html: { class: "form-horizontal center"} do |f| %>
<div class="form-group">