Newer
Older
class CommentsController < ApplicationController
before_filter :authenticate_user!
def create
target = Post.first(:id => params[:comment][:post_id])
text = params[:comment][:text]
class CommentsController < ApplicationController
before_filter :authenticate_user!
def create
target = Post.first(:id => params[:comment][:post_id])
text = params[:comment][:text]