Sha256: 993a4b74cf17e9e22633982486cf213bc62c39f467ef8fa0c36cd79a439ae4d8

Contents?: true

Size: 531 Bytes

Versions: 7

Compression:

Stored size: 531 Bytes

Contents

class MembershipTypesController < ArtfullyOseController
  def index
    @membership_types = current_organization.membership_types.paginate(:page => params[:page], :per_page => 50)
  end

  def new
    @membership_type = MembershipType.new
  end

  def create
    @membership_type = MembershipType.new(params[:membership_type])
    @membership_type.organization = current_organization
    @membership_type.save
    redirect_to membership_types_path
  end

  def edit
    @membership_type = MembershipType.find(params[:id])
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.6 app/controllers/membership_types_controller.rb
artfully_ose-1.2.0.pre.5 app/controllers/membership_types_controller.rb
artfully_ose-1.2.0.pre.4 app/controllers/membership_types_controller.rb
artfully_ose-1.2.0.pre.3 app/controllers/membership_types_controller.rb
artfully_ose-1.2.0.pre.2 app/controllers/membership_types_controller.rb
artfully_ose-1.2.0.pre.1 app/controllers/membership_types_controller.rb
artfully_ose-1.2.0.pre app/controllers/membership_types_controller.rb