Class: DiscussionsController

Inherits:
InheritedResources::Base
  • Object
show all
Defined in:
app/controllers/discussions_controller.rb

Instance Method Summary collapse

Instance Method Details

#newObject



4
5
6
7
8
# File 'app/controllers/discussions_controller.rb', line 4

def new
  new! do |format|
    @new_message = ForumMessage.new(:discussion=>resource, :author=>current_user)
  end
end