Skip to content

Instantly share code, notes, and snippets.

View shadowmaru's full-sized avatar
:shipit:
Ship it!

Ricardo Shiota Yasuda shadowmaru

:shipit:
Ship it!
View GitHub Profile
class CreateAuthorizenetGateway < ActiveRecord::Migration
def self.up
login = GatewayOption.create(:name => "login",
:description => "Your Authorize.Net API Login ID")
password = GatewayOption.create(:name => "password",
:description => "Your Authorize.Net Transaction Key.")
test = GatewayOption.create(:name => "test",
:description => "If true, perform transactions against the test server. Otherwise, perform transactions against the production server.")
gateway = Gateway.create(:name => "Authorize.net",
@shadowmaru
shadowmaru / gist:8796
Created September 4, 2008 15:59
Layout file example
app/views/layouts/application.html.erb
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title><%= @title || "Título" %></title>
<%= stylesheet_link_tag 'site' %>
<%= javascript_include_tag 'application', 'prototype', 'effects' %>