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.1.30 app/controllers/forum_messages_controller.rb
wheels-0.1.28 app/controllers/forum_messages_controller.rb
wheels-0.1.27 app/controllers/forum_messages_controller.rb
wheels-0.1.25 app/controllers/forum_messages_controller.rb
wheels-0.1.24 app/controllers/forum_messages_controller.rb
wheels-0.1.23 app/controllers/forum_messages_controller.rb
wheels-0.1.22 app/controllers/forum_messages_controller.rb
wheels-0.1.21 app/controllers/forum_messages_controller.rb
wheels-0.1.20 app/controllers/forum_messages_controller.rb
wheels-0.1.19 app/controllers/forum_messages_controller.rb
wheels-0.1.18 app/controllers/forum_messages_controller.rb
wheels-0.1.17 app/controllers/forum_messages_controller.rb
wheels-0.1.16 app/controllers/forum_messages_controller.rb
wheels-0.1.15 app/controllers/forum_messages_controller.rb
wheels-0.1.14 app/controllers/forum_messages_controller.rb
wheels-0.1.13 app/controllers/forum_messages_controller.rb
wheels-0.1.12 app/controllers/forum_messages_controller.rb
wheels-0.1.10 app/controllers/forum_messages_controller.rb
wheels-0.1.9 app/controllers/forum_messages_controller.rb
wheels-0.1.8 app/controllers/forum_messages_controller.rb