Skip to content

Instantly share code, notes, and snippets.

@abrambailey
abrambailey / gist:dceb8f450b6f139fab2a
Created August 10, 2014 17:15
How to add Spree to an existing Ruby on Rails application with devise authentication
gem 'spree', github: 'spree/spree', :branch => '2-3-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-3-stable'
$ bundle install
$ rails g spree:install --migrate=false --sample=false --seed=false
config/initializers/spree.rb by changing this line: Spree.user_class = "Spree::User" to this: Spree.user_class = "User"
$ rake spree_auth:install:migrations
require 'csv'
require 'street_address'
require 'logger'
log = Logger.new(STDERR)
count = 0
# puts CSV.generate(ARGV[1]) do |csv|
CSV.foreach(ARGV[0], :headers => true) do |row|
if (count == 0)
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | Visit http://www.adobe.com/go/loganalyzer/ for more information
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | START - Installer Session
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | RIBS version: 8.0.0.15
06/17/14 15:47:24:884 | [INFO] | | OOBE | DE | | | | 656 | Win OS version: 6.2.0.0 64 bit Type: 1
06/17/14 15:47:24:884 |
.footer {
color:white;
font-family: OpenSansSemibold;
font-size: 12px;
padding:2px;
padding-bottom: 4px;
//text-align: center;
a {
color:white;
margin-right: 20px;
searchable do
text :name, :as => :name_textp
text :full_name, :as => :full_name_textp
end
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
funkdified@vizio ~ $ echo "deb https://download.01.org/gfx/ubuntu/12.10/main Ubuntu 12.10 #Intel Graphics drivers" | sudo tee /etc/apt/sources.list.d/intellinuxgraphics.list
[sudo] password for funkdified:
deb https://download.01.org/gfx/ubuntu/12.10/main Ubuntu 12.10 #Intel Graphics drivers
funkdified@vizio ~ $ wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg -O - | sudo apt-key add -
--2013-05-30 22:32:39-- https://download.01.org/gfx/RPM-GPG-KEY-ilg
Resolving download.01.org (download.01.org)... 198.145.11.106, 2001:19d0:3:5::106
Connecting to download.01.org (download.01.org)|198.145.11.106|:443... connected.
WARNING: no certificate subject alternative name matches
requested host name `download.01.org'.
HTTP request sent, awaiting response... 200 OK
@abrambailey
abrambailey / schema.xml
Created May 8, 2013 23:31
Full schema.xml file
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
<% provide :title, 'Consumer Profile | Update' %>
<legend>Update your Profile</legend>
<%= simple_form_for @consumer, :html => { :class => 'cons_edit form-horizontal' } do |f| %>
<%= f.input :display_name, :label => "Public name", :placeholder => @consumer.user.username %>
<%= f.input :tagline, :placeholder => "Your tagline" %>