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:
parent
739b7e551b
commit
5afb97b5f7
2 changed files with 3 additions and 2 deletions
|
|
@ -4,7 +4,8 @@ class DashboardController < ApplicationController
|
|||
include ApplicationHelper
|
||||
|
||||
def index
|
||||
@posts = Post.stream
|
||||
posts = Post.all.order_by( [:created_at, :desc] )
|
||||
@posts = posts
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ class Friend
|
|||
field :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
|
||||
|
||||
before_validation :clean_url
|
||||
|
|
|
|||
Loading…
Reference in a new issue