Skip to content

Instantly share code, notes, and snippets.

@svesely
Created April 12, 2011 19:01
Show Gist options
  • Save svesely/916150 to your computer and use it in GitHub Desktop.
Save svesely/916150 to your computer and use it in GitHub Desktop.
diff --git a/app/views/layouts/_head.html.haml b/app/views/layouts/_head.html.haml
index efdfc85..7d7c904 100644
--- a/app/views/layouts/_head.html.haml
+++ b/app/views/layouts/_head.html.haml
@@ -7,7 +7,7 @@
%meta{ :content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible" }/
%title
- == #{ controller.controller_name.titleize } - #{ controller.action_name.titleize }
+ TuNG
%meta{ :content => "Tuesday Night Gaming", :name => "description" }/
%meta{ :content => "Vesopolis, LLC", :name => "author" }/
diff --git a/app/models/subject.rb b/app/models/subject.rb
index dde0bb5..8cc8807 100644
--- a/app/models/subject.rb
+++ b/app/models/subject.rb
@@ -5,7 +5,7 @@ class Subject < ActiveRecord::Base
before_create :update_last_post_created_at
validates_presence_of :name
default_scope order("last_post_created_at DESC").includes(:posts => :user)
- paginates_per 5
+ paginates_per 11
class << self
def last_five
find(:all, :limit => 5, :include=> [:posts], :order => "last_post_created_at DESC")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment