DB restructure, print page
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
module IdCard
|
||||
class PlansController < ApplicationController
|
||||
|
||||
# View Methods
|
||||
def new
|
||||
|
||||
end
|
||||
|
||||
def create
|
||||
|
||||
end
|
||||
|
||||
def edit
|
||||
|
||||
end
|
||||
|
||||
def update
|
||||
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
||||
end
|
||||
|
||||
# API Methods
|
||||
|
||||
def get_plan_benefits
|
||||
@plan_benefits = IdCard::Plan.find(params[:id]).plan_benefits
|
||||
render json: @plan_benefits.as_json
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user