Created
March 1, 2012 22:39
-
-
Save andrewhl/1953743 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# == Schema Information | |
# | |
# Table name: after_school_programs | |
# | |
# id :integer not null, primary key | |
# day :string(255) | |
# program_name :string(255) | |
# price :string(255) | |
# status :string(255) | |
# dates :string(255) | |
# max_registrants :integer | |
# created_at :datetime not null | |
# updated_at :datetime not null | |
# | |
class AfterSchoolProgram < ActiveRecord::Base | |
attr_accessible :day, | |
:program_name, | |
:price, | |
:status, | |
:dates, | |
:max_registrants | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AfterSchoolProgramsController < ApplicationController | |
before_filter :admin_user, :all | |
def new | |
@program = AfterSchoolProgram.new | |
end | |
def show | |
end | |
def destroy | |
end | |
def edit | |
end | |
def index | |
@programs = AfterSchoolProgram.all | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment