dummy/app/controllers/posts_controller.rb in dailycred-0.1.4 vs dummy/app/controllers/posts_controller.rb in dailycred-0.1.5
- old
+ new
@@ -1,11 +1,12 @@
class PostsController < ApplicationController
+ before_filter :authenticate
# GET /posts
# GET /posts.json
-
- before_filter :authenticate
+
def index
@posts = Post.all
+ ap current_user.created.utc
respond_to do |format|
format.html # index.html.erb
format.json { render json: @posts }
end