Sha256: 93c2cea6c80325f2c2903487d30e244bcb37f978376358489a70b4eeb1ec47aa

Contents?: true

Size: 296 Bytes

Versions: 51

Compression:

Stored size: 296 Bytes

Contents

class AttachmentsController < InheritedResources::Base
  respond_to :html, :js
  belongs_to :page
  before_filter :authenticate_user!
  ajax_loading

  def index
    index! do |format|
      @attachment = @page.attachments.build
    end
  end
  def create
    create! {collection_url}
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
wheels-0.1.30 app/controllers/attachments_controller.rb
wheels-0.1.28 app/controllers/attachments_controller.rb
wheels-0.1.27 app/controllers/attachments_controller.rb
wheels-0.1.25 app/controllers/attachments_controller.rb
wheels-0.1.24 app/controllers/attachments_controller.rb
wheels-0.1.23 app/controllers/attachments_controller.rb
wheels-0.1.22 app/controllers/attachments_controller.rb
wheels-0.1.21 app/controllers/attachments_controller.rb
wheels-0.1.20 app/controllers/attachments_controller.rb
wheels-0.1.19 app/controllers/attachments_controller.rb
wheels-0.1.18 app/controllers/attachments_controller.rb
wheels-0.1.17 app/controllers/attachments_controller.rb
wheels-0.1.16 app/controllers/attachments_controller.rb
wheels-0.1.15 app/controllers/attachments_controller.rb
wheels-0.1.14 app/controllers/attachments_controller.rb
wheels-0.1.13 app/controllers/attachments_controller.rb
wheels-0.1.12 app/controllers/attachments_controller.rb
wheels-0.1.10 app/controllers/attachments_controller.rb
wheels-0.1.9 app/controllers/attachments_controller.rb
wheels-0.1.8 app/controllers/attachments_controller.rb