dashboard controller stopped resolving, but the old behavior seems to work now...nnot sure why, could have been mongoid bug...

This commit is contained in:
maxwell 2010-06-19 00:49:35 -07:00
parent 739b7e551b
commit 5afb97b5f7
2 changed files with 3 additions and 2 deletions

View file

@ -4,7 +4,8 @@ class DashboardController < ApplicationController
include ApplicationHelper include ApplicationHelper
def index def index
@posts = Post.stream posts = Post.all.order_by( [:created_at, :desc] )
@posts = posts
end end

View file

@ -9,7 +9,7 @@ class Friend
field :url field :url
validates_presence_of :username, :url validates_presence_of :username, :url
validates_format_of :url, :with => givalidates_format_of :url, :with =>
/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/ix /^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/ix
before_validation :clean_url before_validation :clean_url