collab/app/controllers/wall_controller.rb
2010-03-15 11:47:32 -04:00

19 lines
324 B
Ruby

class WallController < ApplicationController
before_filter :authenticate, :load_project
def create
@wall = Wall.new(params[:wall])
@wall.project = @project
@wall.author = current_user
@wall.save
end
private
def load_project
@project = Project.find(params[:project_id])
end
end