Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 3d4999ec9c
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (13 sloc) 0.469 kB
class CommentsController < ApplicationController
before_filter :load_parents
def create
@preso.comments.create!(params[:comment].update(:user_id => current_user.id))
redirect_to group_meeting_preso_path(@group,@meeting,@preso)
end
protected
def load_parents
@group = Group.find_by_short_name(params[:group_id])
@meeting = @group.meetings.by_date(params[:meeting_id]).first
@preso = @meeting.presos.find(params[:preso_id])
end
end
Jump to Line
Something went wrong with that request. Please try again.