-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Liam F. Doran (ldoran)
committed
Mar 13, 2013
1 parent
4a19bbc
commit 1731368
Showing
141 changed files
with
2,066 additions
and
219 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Place all the behaviors and hooks related to the matching controller here. | ||
# All this logic will automatically be available in application.js. | ||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Place all the behaviors and hooks related to the matching controller here. | ||
# All this logic will automatically be available in application.js. | ||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Place all the behaviors and hooks related to the matching controller here. | ||
# All this logic will automatically be available in application.js. | ||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Place all the behaviors and hooks related to the matching controller here. | ||
# All this logic will automatically be available in application.js. | ||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Place all the behaviors and hooks related to the matching controller here. | ||
# All this logic will automatically be available in application.js. | ||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Place all the behaviors and hooks related to the matching controller here. | ||
# All this logic will automatically be available in application.js. | ||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Place all the styles related to the daily_diets controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Place all the styles related to the daily_regimen controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Place all the styles related to the diet_plans controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Place all the styles related to the exercise_reps controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Place all the styles related to the leaderboard_spots controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Place all the styles related to the monitor_child_relationships controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
class DailyDietsController < ApplicationController | ||
# GET /daily_diets | ||
# GET /daily_diets.json | ||
def index | ||
@daily_diets = DailyDiet.all | ||
|
||
respond_to do |format| | ||
format.html # index.html.erb | ||
format.json { render json: @daily_diets } | ||
end | ||
end | ||
|
||
# GET /daily_diets/1 | ||
# GET /daily_diets/1.json | ||
def show | ||
@daily_diet = DailyDiet.find(params[:id]) | ||
|
||
respond_to do |format| | ||
format.html # show.html.erb | ||
format.json { render json: @daily_diet } | ||
end | ||
end | ||
|
||
# GET /daily_diets/new | ||
# GET /daily_diets/new.json | ||
def new | ||
@daily_diet = DailyDiet.new | ||
|
||
respond_to do |format| | ||
format.html # new.html.erb | ||
format.json { render json: @daily_diet } | ||
end | ||
end | ||
|
||
# GET /daily_diets/1/edit | ||
def edit | ||
@daily_diet = DailyDiet.find(params[:id]) | ||
end | ||
|
||
# POST /daily_diets | ||
# POST /daily_diets.json | ||
def create | ||
@daily_diet = DailyDiet.new(params[:daily_diet]) | ||
|
||
respond_to do |format| | ||
if @daily_diet.save | ||
format.html { redirect_to @daily_diet, notice: 'Daily diet was successfully created.' } | ||
format.json { render json: @daily_diet, status: :created, location: @daily_diet } | ||
else | ||
format.html { render action: "new" } | ||
format.json { render json: @daily_diet.errors, status: :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# PUT /daily_diets/1 | ||
# PUT /daily_diets/1.json | ||
def update | ||
@daily_diet = DailyDiet.find(params[:id]) | ||
|
||
respond_to do |format| | ||
if @daily_diet.update_attributes(params[:daily_diet]) | ||
format.html { redirect_to @daily_diet, notice: 'Daily diet was successfully updated.' } | ||
format.json { head :no_content } | ||
else | ||
format.html { render action: "edit" } | ||
format.json { render json: @daily_diet.errors, status: :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /daily_diets/1 | ||
# DELETE /daily_diets/1.json | ||
def destroy | ||
@daily_diet = DailyDiet.find(params[:id]) | ||
@daily_diet.destroy | ||
|
||
respond_to do |format| | ||
format.html { redirect_to daily_diets_url } | ||
format.json { head :no_content } | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
class DailyRegimenController < ApplicationController | ||
# GET /daily_regimen | ||
# GET /daily_regimen.json | ||
def index | ||
@daily_regimen = DailyRegiman.all | ||
|
||
respond_to do |format| | ||
format.html # index.html.erb | ||
format.json { render json: @daily_regimen } | ||
end | ||
end | ||
|
||
# GET /daily_regimen/1 | ||
# GET /daily_regimen/1.json | ||
def show | ||
@daily_regiman = DailyRegiman.find(params[:id]) | ||
|
||
respond_to do |format| | ||
format.html # show.html.erb | ||
format.json { render json: @daily_regiman } | ||
end | ||
end | ||
|
||
# GET /daily_regimen/new | ||
# GET /daily_regimen/new.json | ||
def new | ||
@daily_regiman = DailyRegiman.new | ||
|
||
respond_to do |format| | ||
format.html # new.html.erb | ||
format.json { render json: @daily_regiman } | ||
end | ||
end | ||
|
||
# GET /daily_regimen/1/edit | ||
def edit | ||
@daily_regiman = DailyRegiman.find(params[:id]) | ||
end | ||
|
||
# POST /daily_regimen | ||
# POST /daily_regimen.json | ||
def create | ||
@daily_regiman = DailyRegiman.new(params[:daily_regiman]) | ||
|
||
respond_to do |format| | ||
if @daily_regiman.save | ||
format.html { redirect_to @daily_regiman, notice: 'Daily regiman was successfully created.' } | ||
format.json { render json: @daily_regiman, status: :created, location: @daily_regiman } | ||
else | ||
format.html { render action: "new" } | ||
format.json { render json: @daily_regiman.errors, status: :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# PUT /daily_regimen/1 | ||
# PUT /daily_regimen/1.json | ||
def update | ||
@daily_regiman = DailyRegiman.find(params[:id]) | ||
|
||
respond_to do |format| | ||
if @daily_regiman.update_attributes(params[:daily_regiman]) | ||
format.html { redirect_to @daily_regiman, notice: 'Daily regiman was successfully updated.' } | ||
format.json { head :no_content } | ||
else | ||
format.html { render action: "edit" } | ||
format.json { render json: @daily_regiman.errors, status: :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /daily_regimen/1 | ||
# DELETE /daily_regimen/1.json | ||
def destroy | ||
@daily_regiman = DailyRegiman.find(params[:id]) | ||
@daily_regiman.destroy | ||
|
||
respond_to do |format| | ||
format.html { redirect_to daily_regimen_url } | ||
format.json { head :no_content } | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
class DietPlansController < ApplicationController | ||
# GET /diet_plans | ||
# GET /diet_plans.json | ||
def index | ||
@diet_plans = DietPlan.all | ||
|
||
respond_to do |format| | ||
format.html # index.html.erb | ||
format.json { render json: @diet_plans } | ||
end | ||
end | ||
|
||
# GET /diet_plans/1 | ||
# GET /diet_plans/1.json | ||
def show | ||
@diet_plan = DietPlan.find(params[:id]) | ||
|
||
respond_to do |format| | ||
format.html # show.html.erb | ||
format.json { render json: @diet_plan } | ||
end | ||
end | ||
|
||
# GET /diet_plans/new | ||
# GET /diet_plans/new.json | ||
def new | ||
@diet_plan = DietPlan.new | ||
|
||
respond_to do |format| | ||
format.html # new.html.erb | ||
format.json { render json: @diet_plan } | ||
end | ||
end | ||
|
||
# GET /diet_plans/1/edit | ||
def edit | ||
@diet_plan = DietPlan.find(params[:id]) | ||
end | ||
|
||
# POST /diet_plans | ||
# POST /diet_plans.json | ||
def create | ||
@diet_plan = DietPlan.new(params[:diet_plan]) | ||
|
||
respond_to do |format| | ||
if @diet_plan.save | ||
format.html { redirect_to @diet_plan, notice: 'Diet plan was successfully created.' } | ||
format.json { render json: @diet_plan, status: :created, location: @diet_plan } | ||
else | ||
format.html { render action: "new" } | ||
format.json { render json: @diet_plan.errors, status: :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# PUT /diet_plans/1 | ||
# PUT /diet_plans/1.json | ||
def update | ||
@diet_plan = DietPlan.find(params[:id]) | ||
|
||
respond_to do |format| | ||
if @diet_plan.update_attributes(params[:diet_plan]) | ||
format.html { redirect_to @diet_plan, notice: 'Diet plan was successfully updated.' } | ||
format.json { head :no_content } | ||
else | ||
format.html { render action: "edit" } | ||
format.json { render json: @diet_plan.errors, status: :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /diet_plans/1 | ||
# DELETE /diet_plans/1.json | ||
def destroy | ||
@diet_plan = DietPlan.find(params[:id]) | ||
@diet_plan.destroy | ||
|
||
respond_to do |format| | ||
format.html { redirect_to diet_plans_url } | ||
format.json { head :no_content } | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
class ExerciseRepsController < ApplicationController | ||
# GET /exercise_reps | ||
# GET /exercise_reps.json | ||
def index | ||
@exercise_reps = ExerciseRep.all | ||
|
||
respond_to do |format| | ||
format.html # index.html.erb | ||
format.json { render json: @exercise_reps } | ||
end | ||
end | ||
|
||
# GET /exercise_reps/1 | ||
# GET /exercise_reps/1.json | ||
def show | ||
@exercise_rep = ExerciseRep.find(params[:id]) | ||
|
||
respond_to do |format| | ||
format.html # show.html.erb | ||
format.json { render json: @exercise_rep } | ||
end | ||
end | ||
|
||
# GET /exercise_reps/new | ||
# GET /exercise_reps/new.json | ||
def new | ||
@exercise_rep = ExerciseRep.new | ||
|
||
respond_to do |format| | ||
format.html # new.html.erb | ||
format.json { render json: @exercise_rep } | ||
end | ||
end | ||
|
||
# GET /exercise_reps/1/edit | ||
def edit | ||
@exercise_rep = ExerciseRep.find(params[:id]) | ||
end | ||
|
||
# POST /exercise_reps | ||
# POST /exercise_reps.json | ||
def create | ||
@exercise_rep = ExerciseRep.new(params[:exercise_rep]) | ||
|
||
respond_to do |format| | ||
if @exercise_rep.save | ||
format.html { redirect_to @exercise_rep, notice: 'Exercise rep was successfully created.' } | ||
format.json { render json: @exercise_rep, status: :created, location: @exercise_rep } | ||
else | ||
format.html { render action: "new" } | ||
format.json { render json: @exercise_rep.errors, status: :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# PUT /exercise_reps/1 | ||
# PUT /exercise_reps/1.json | ||
def update | ||
@exercise_rep = ExerciseRep.find(params[:id]) | ||
|
||
respond_to do |format| | ||
if @exercise_rep.update_attributes(params[:exercise_rep]) | ||
format.html { redirect_to @exercise_rep, notice: 'Exercise rep was successfully updated.' } | ||
format.json { head :no_content } | ||
else | ||
format.html { render action: "edit" } | ||
format.json { render json: @exercise_rep.errors, status: :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /exercise_reps/1 | ||
# DELETE /exercise_reps/1.json | ||
def destroy | ||
@exercise_rep = ExerciseRep.find(params[:id]) | ||
@exercise_rep.destroy | ||
|
||
respond_to do |format| | ||
format.html { redirect_to exercise_reps_url } | ||
format.json { head :no_content } | ||
end | ||
end | ||
end |
Oops, something went wrong.