Sha256: 2b82b6d8b36181cc240d2cb1d40aff8627e095c9aeed65529d924ad11c5fe90e

Contents?: true

Size: 321 Bytes

Versions: 59

Compression:

Stored size: 321 Bytes

Contents

class ForumMessagesController < InheritedResources::Base
  belongs_to :forum, :discussion

  resource_attributes({:author => :current_user})

  def create
    create! {forum_discussion_path(@discussion.forum, @discussion)}
  end
  def update
    update! {forum_discussion_path(@discussion.forum, @discussion)}
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
wheels-0.0.37 app/controllers/forum_messages_controller.rb
wheels-0.0.36 app/controllers/forum_messages_controller.rb
wheels-0.0.35 app/controllers/forum_messages_controller.rb
wheels-0.0.34 app/controllers/forum_messages_controller.rb
wheels-0.0.33 app/controllers/forum_messages_controller.rb
wheels-0.0.32 app/controllers/forum_messages_controller.rb
wheels-0.0.31 app/controllers/forum_messages_controller.rb
wheels-0.0.30 app/controllers/forum_messages_controller.rb
wheels-0.0.29 app/controllers/forum_messages_controller.rb
wheels-0.0.28 app/controllers/forum_messages_controller.rb
wheels-0.0.27 app/controllers/forum_messages_controller.rb
wheels-0.0.26 app/controllers/forum_messages_controller.rb
wheels-0.0.25 app/controllers/forum_messages_controller.rb
wheels-0.0.24 app/controllers/forum_messages_controller.rb
wheels-0.0.23 app/controllers/forum_messages_controller.rb
wheels-0.0.22 app/controllers/forum_messages_controller.rb
wheels-0.0.21 app/controllers/forum_messages_controller.rb
wheels-0.0.20 app/controllers/forum_messages_controller.rb
wheels-0.0.19 app/controllers/forum_messages_controller.rb