Skip to content

Instantly share code, notes, and snippets.

@jgoyon
jgoyon / register-gateway-spree.rb
Created October 25, 2012 13:54
Add custom gateway in Spree ecommerce
config.after_initialize do
# Register Shipping Tax Calculator
Rails.configuration.spree.payment_methods << Spree::Gateway::CustomGateway
end
@jgoyon
jgoyon / menu.html
Created November 1, 2012 12:02
Horizontal menu, full width sub menu
<div id="menu">
<ul id="nav">
<li><a href="#">Menu 1</a>
<ul>
<li><a href="#">Menu 1 Submenu item 1</a></li>
<li><a href="#">Menu 1 Submenu item 2</a></li>
<li><a href="#">Menu 1 Submenu item 3</a></li>
</ul>
</li>