parent
0aec53dda7
commit
9f417e17cd
@ -0,0 +1,29 @@
|
||||
class PartnersController < ApplicationController
|
||||
layout 'base_management'
|
||||
|
||||
def index
|
||||
@menu_type = 6
|
||||
@sub_type = 3
|
||||
|
||||
@partners = Partner.includes(:school)
|
||||
end
|
||||
|
||||
def new
|
||||
|
||||
end
|
||||
|
||||
def edit
|
||||
|
||||
end
|
||||
|
||||
def create
|
||||
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
end
|
@ -1,5 +1,8 @@
|
||||
class Partner < ActiveRecord::Base
|
||||
attr_accessible :name
|
||||
# attr_accessible :name, :active
|
||||
attr_accessor :active
|
||||
|
||||
has_one :school
|
||||
has_many :customers
|
||||
has_many :users
|
||||
end
|
||||
|
Loading…
Reference in new issue