Created
April 12, 2011 19:01
-
-
Save svesely/916150 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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