Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Renamed paid_on to paid_at and bumped gem version.

  • Loading branch information...
commit 2db433dc72abac9742ffafae2c74e1b70da2da6f 1 parent c605cda
Alan Johnson authored March 07, 2011
2  Gemfile
@@ -31,5 +31,5 @@ gem 'sqlite3-ruby', :require => 'sqlite3'
31 31
 # end
32 32
 
33 33
 gem 'inherited_resources', '~> 1.2.1'
34  
-gem "payday", "1.0.0beta1"
  34
+gem "payday", "1.0.0beta2"
35 35
 gem "dynamic_form"
7  app/views/layouts/application.html.erb
@@ -12,6 +12,11 @@
12 12
   <div id="content">
13 13
     <%= yield %>
14 14
   </div>
15  
-
  15
+  
  16
+  <div id="footer">
  17
+    <div>
  18
+      This is a quick example app for generating pdf invoices with Payday. <a href="http://github.com/commondream/payday">Check it out on Github</a>.
  19
+    </div>
  20
+  </div>
16 21
 </body>
17 22
 </html>
9  db/migrate/20110308040450_rename_due_on_to_due_at.rb
... ...
@@ -0,0 +1,9 @@
  1
+class RenameDueOnToDueAt < ActiveRecord::Migration
  2
+  def self.up
  3
+    rename_column :invoices, :due_on, :due_at
  4
+  end
  5
+
  6
+  def self.down
  7
+    rename_column :invoices, :due_at, :due_on
  8
+  end
  9
+end
4  db/schema.rb
@@ -10,10 +10,10 @@
10 10
 #
11 11
 # It's strongly recommended to check this file into your version control system.
12 12
 
13  
-ActiveRecord::Schema.define(:version => 20110307202831) do
  13
+ActiveRecord::Schema.define(:version => 20110308040450) do
14 14
 
15 15
   create_table "invoices", :force => true do |t|
16  
-    t.date     "due_on"
  16
+    t.date     "due_at"
17 17
     t.date     "paid_at"
18 18
     t.decimal  "total"
19 19
     t.string   "company_name"
16  public/stylesheets/application.css
@@ -15,6 +15,21 @@ h1 a {
15 15
 
16 16
 #content {
17 17
 	padding: 10px;
  18
+	margin-bottom: 50px;
  19
+}
  20
+
  21
+#footer {
  22
+	position: absolute;
  23
+	color: #fff;
  24
+	background: #000;
  25
+	bottom: 0;
  26
+	padding: 10px 0;
  27
+	font-size: .8em;
  28
+	margin-top: 30px;
  29
+	width: 100%;
  30
+}
  31
+#footer div {
  32
+	padding: 0 10px;
18 33
 }
19 34
 
20 35
 /* table styles */
@@ -30,7 +45,6 @@ table td, table th {
30 45
 	padding: 4px;
31 46
 }
32 47
 
33  
-
34 48
 /* form styles */
35 49
 form div {
36 50
 	margin-bottom: 10px;

0 notes on commit 2db433d

Please sign in to comment.
Something went wrong with that request. Please try again.