Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Renamed paid_on to paid_at and bumped gem version.

  • Loading branch information...
commit 2db433dc72abac9742ffafae2c74e1b70da2da6f 1 parent c605cda
@commondream authored
View
2  Gemfile
@@ -31,5 +31,5 @@ gem 'sqlite3-ruby', :require => 'sqlite3'
# end
gem 'inherited_resources', '~> 1.2.1'
-gem "payday", "1.0.0beta1"
+gem "payday", "1.0.0beta2"
gem "dynamic_form"
View
7 app/views/layouts/application.html.erb
@@ -12,6 +12,11 @@
<div id="content">
<%= yield %>
</div>
-
+
+ <div id="footer">
+ <div>
+ 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>.
+ </div>
+ </div>
</body>
</html>
View
9 db/migrate/20110308040450_rename_due_on_to_due_at.rb
@@ -0,0 +1,9 @@
+class RenameDueOnToDueAt < ActiveRecord::Migration
+ def self.up
+ rename_column :invoices, :due_on, :due_at
+ end
+
+ def self.down
+ rename_column :invoices, :due_at, :due_on
+ end
+end
View
4 db/schema.rb
@@ -10,10 +10,10 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20110307202831) do
+ActiveRecord::Schema.define(:version => 20110308040450) do
create_table "invoices", :force => true do |t|
- t.date "due_on"
+ t.date "due_at"
t.date "paid_at"
t.decimal "total"
t.string "company_name"
View
16 public/stylesheets/application.css
@@ -15,6 +15,21 @@ h1 a {
#content {
padding: 10px;
+ margin-bottom: 50px;
+}
+
+#footer {
+ position: absolute;
+ color: #fff;
+ background: #000;
+ bottom: 0;
+ padding: 10px 0;
+ font-size: .8em;
+ margin-top: 30px;
+ width: 100%;
+}
+#footer div {
+ padding: 0 10px;
}
/* table styles */
@@ -30,7 +45,6 @@ table td, table th {
padding: 4px;
}
-
/* form styles */
form div {
margin-bottom: 10px;
Please sign in to comment.
Something went wrong with that request. Please try again.