-
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
May 8, 2013
1 parent
32c4851
commit 513cb1e
Showing
104 changed files
with
1,432 additions
and
340 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 DailyExercises 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 ExercisePlans 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 |
---|---|---|
@@ -1,3 +1,13 @@ | ||
// Place all the styles related to the home controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ | ||
|
||
div #home_overlay | ||
{ | ||
position:relative; | ||
top:20px; | ||
left:20px; | ||
background-color:#000000; | ||
color:#dddddd; | ||
opacity:.5; | ||
} |
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
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,90 @@ | ||
class ArticlesController < ApplicationController | ||
# GET /articles | ||
# GET /articles.json | ||
def index | ||
@articles = Article.all | ||
|
||
respond_to do |format| | ||
format.html # index.html.erb | ||
format.json { render json: @articles } | ||
end | ||
end | ||
|
||
# GET /articles/1 | ||
# GET /articles/1.json | ||
def show | ||
@article = Article.find(params[:id]) | ||
|
||
respond_to do |format| | ||
format.html # show.html.erb | ||
format.json { render json: @article } | ||
end | ||
end | ||
|
||
# GET /articles/new | ||
# GET /articles/new.json | ||
def new | ||
@article = Article.new | ||
|
||
if(params.has_key?(:watcher_id)) | ||
@this_watcher_id = params[:watcher_id] | ||
else | ||
@this_watcher_id = 0 | ||
end | ||
@article.watcher_id = @this_watcher_id | ||
|
||
respond_to do |format| | ||
format.html # new.html.erb | ||
format.json { render json: @article } | ||
end | ||
end | ||
|
||
# GET /articles/1/edit | ||
def edit | ||
@article = Article.find(params[:id]) | ||
end | ||
|
||
# POST /articles | ||
# POST /articles.json | ||
def create | ||
@article = Article.new(params[:article]) | ||
|
||
respond_to do |format| | ||
if @article.save | ||
format.html { redirect_to @article, notice: 'Article was successfully created.' } | ||
format.json { render json: @article, status: :created, location: @article } | ||
else | ||
format.html { render action: "new" } | ||
format.json { render json: @article.errors, status: :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# PUT /articles/1 | ||
# PUT /articles/1.json | ||
def update | ||
@article = Article.find(params[:id]) | ||
|
||
respond_to do |format| | ||
if @article.update_attributes(params[:article]) | ||
format.html { redirect_to @article, notice: 'Article was successfully updated.' } | ||
format.json { head :no_content } | ||
else | ||
format.html { render action: "edit" } | ||
format.json { render json: @article.errors, status: :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /articles/1 | ||
# DELETE /articles/1.json | ||
def destroy | ||
@article = Article.find(params[:id]) | ||
@article.destroy | ||
|
||
respond_to do |format| | ||
format.html { redirect_to articles_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
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 DailyExercisesController < ApplicationController | ||
# GET /daily_exercises | ||
# GET /daily_exercises.json | ||
def index | ||
@daily_exercises = DailyExercise.all | ||
|
||
respond_to do |format| | ||
format.html # index.html.erb | ||
format.json { render json: @daily_exercises } | ||
end | ||
end | ||
|
||
# GET /daily_exercises/1 | ||
# GET /daily_exercises/1.json | ||
def show | ||
@daily_exercise = DailyExercise.find(params[:id]) | ||
|
||
respond_to do |format| | ||
format.html # show.html.erb | ||
format.json { render json: @daily_exercise } | ||
end | ||
end | ||
|
||
# GET /daily_exercises/new | ||
# GET /daily_exercises/new.json | ||
def new | ||
@daily_exercise = DailyExercise.new | ||
|
||
respond_to do |format| | ||
format.html # new.html.erb | ||
format.json { render json: @daily_exercise } | ||
end | ||
end | ||
|
||
# GET /daily_exercises/1/edit | ||
def edit | ||
@daily_exercise = DailyExercise.find(params[:id]) | ||
end | ||
|
||
# POST /daily_exercises | ||
# POST /daily_exercises.json | ||
def create | ||
@daily_exercise = DailyExercise.new(params[:daily_exercise]) | ||
|
||
respond_to do |format| | ||
if @daily_exercise.save | ||
format.html { redirect_to @daily_exercise, notice: 'Daily exercise was successfully created.' } | ||
format.json { render json: @daily_exercise, status: :created, location: @daily_exercise } | ||
else | ||
format.html { render action: "new" } | ||
format.json { render json: @daily_exercise.errors, status: :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# PUT /daily_exercises/1 | ||
# PUT /daily_exercises/1.json | ||
def update | ||
@daily_exercise = DailyExercise.find(params[:id]) | ||
|
||
respond_to do |format| | ||
if @daily_exercise.update_attributes(params[:daily_exercise]) | ||
format.html { redirect_to @daily_exercise, notice: 'Daily exercise was successfully updated.' } | ||
format.json { head :no_content } | ||
else | ||
format.html { render action: "edit" } | ||
format.json { render json: @daily_exercise.errors, status: :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /daily_exercises/1 | ||
# DELETE /daily_exercises/1.json | ||
def destroy | ||
@daily_exercise = DailyExercise.find(params[:id]) | ||
@daily_exercise.destroy | ||
|
||
respond_to do |format| | ||
format.html { redirect_to daily_exercises_url } | ||
format.json { head :no_content } | ||
end | ||
end | ||
end |
Oops, something went wrong.