-
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
Showing
80 changed files
with
1,617 additions
and
57 deletions.
There are no files selected for viewing
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,4 +1,5 @@ | ||
.bundle | ||
db/html | ||
db/*.sqlite3 | ||
log/*.log | ||
tmp/**/* | ||
|
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 AbilitiesController < ApplicationController | ||
# GET /abilities | ||
# GET /abilities.xml | ||
def index | ||
@abilities = Ability.all | ||
|
||
respond_to do |format| | ||
format.html # index.html.erb | ||
format.xml { render :xml => @abilities } | ||
end | ||
end | ||
|
||
# GET /abilities/1 | ||
# GET /abilities/1.xml | ||
def show | ||
@ability = Ability.find(params[:id]) | ||
|
||
respond_to do |format| | ||
format.html # show.html.erb | ||
format.xml { render :xml => @ability } | ||
end | ||
end | ||
|
||
# GET /abilities/new | ||
# GET /abilities/new.xml | ||
def new | ||
@ability = Ability.new | ||
|
||
respond_to do |format| | ||
format.html # new.html.erb | ||
format.xml { render :xml => @ability } | ||
end | ||
end | ||
|
||
# GET /abilities/1/edit | ||
def edit | ||
@ability = Ability.find(params[:id]) | ||
end | ||
|
||
# POST /abilities | ||
# POST /abilities.xml | ||
def create | ||
@ability = Ability.new(params[:ability]) | ||
|
||
respond_to do |format| | ||
if @ability.save | ||
format.html { redirect_to(@ability, :notice => 'Ability was successfully created.') } | ||
format.xml { render :xml => @ability, :status => :created, :location => @ability } | ||
else | ||
format.html { render :action => "new" } | ||
format.xml { render :xml => @ability.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# PUT /abilities/1 | ||
# PUT /abilities/1.xml | ||
def update | ||
@ability = Ability.find(params[:id]) | ||
|
||
respond_to do |format| | ||
if @ability.update_attributes(params[:ability]) | ||
format.html { redirect_to(@ability, :notice => 'Ability was successfully updated.') } | ||
format.xml { head :ok } | ||
else | ||
format.html { render :action => "edit" } | ||
format.xml { render :xml => @ability.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /abilities/1 | ||
# DELETE /abilities/1.xml | ||
def destroy | ||
@ability = Ability.find(params[:id]) | ||
@ability.destroy | ||
|
||
respond_to do |format| | ||
format.html { redirect_to(abilities_url) } | ||
format.xml { head :ok } | ||
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 AbilityScoresController < ApplicationController | ||
# GET /ability_scores | ||
# GET /ability_scores.xml | ||
def index | ||
@ability_scores = AbilityScore.all | ||
|
||
respond_to do |format| | ||
format.html # index.html.erb | ||
format.xml { render :xml => @ability_scores } | ||
end | ||
end | ||
|
||
# GET /ability_scores/1 | ||
# GET /ability_scores/1.xml | ||
def show | ||
@ability_score = AbilityScore.find(params[:id]) | ||
|
||
respond_to do |format| | ||
format.html # show.html.erb | ||
format.xml { render :xml => @ability_score } | ||
end | ||
end | ||
|
||
# GET /ability_scores/new | ||
# GET /ability_scores/new.xml | ||
def new | ||
@ability_score = AbilityScore.new | ||
|
||
respond_to do |format| | ||
format.html # new.html.erb | ||
format.xml { render :xml => @ability_score } | ||
end | ||
end | ||
|
||
# GET /ability_scores/1/edit | ||
def edit | ||
@ability_score = AbilityScore.find(params[:id]) | ||
end | ||
|
||
# POST /ability_scores | ||
# POST /ability_scores.xml | ||
def create | ||
@ability_score = AbilityScore.new(params[:ability_score]) | ||
|
||
respond_to do |format| | ||
if @ability_score.save | ||
format.html { redirect_to(@ability_score, :notice => 'Ability score was successfully created.') } | ||
format.xml { render :xml => @ability_score, :status => :created, :location => @ability_score } | ||
else | ||
format.html { render :action => "new" } | ||
format.xml { render :xml => @ability_score.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# PUT /ability_scores/1 | ||
# PUT /ability_scores/1.xml | ||
def update | ||
@ability_score = AbilityScore.find(params[:id]) | ||
|
||
respond_to do |format| | ||
if @ability_score.update_attributes(params[:ability_score]) | ||
format.html { redirect_to(@ability_score, :notice => 'Ability score was successfully updated.') } | ||
format.xml { head :ok } | ||
else | ||
format.html { render :action => "edit" } | ||
format.xml { render :xml => @ability_score.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /ability_scores/1 | ||
# DELETE /ability_scores/1.xml | ||
def destroy | ||
@ability_score = AbilityScore.find(params[:id]) | ||
@ability_score.destroy | ||
|
||
respond_to do |format| | ||
format.html { redirect_to(ability_scores_url) } | ||
format.xml { head :ok } | ||
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 CampaignsController < ApplicationController | ||
# GET /campaigns | ||
# GET /campaigns.xml | ||
def index | ||
@campaigns = Campaign.all | ||
|
||
respond_to do |format| | ||
format.html # index.html.erb | ||
format.xml { render :xml => @campaigns } | ||
end | ||
end | ||
|
||
# GET /campaigns/1 | ||
# GET /campaigns/1.xml | ||
def show | ||
@campaign = Campaign.find(params[:id]) | ||
|
||
respond_to do |format| | ||
format.html # show.html.erb | ||
format.xml { render :xml => @campaign } | ||
end | ||
end | ||
|
||
# GET /campaigns/new | ||
# GET /campaigns/new.xml | ||
def new | ||
@campaign = Campaign.new | ||
|
||
respond_to do |format| | ||
format.html # new.html.erb | ||
format.xml { render :xml => @campaign } | ||
end | ||
end | ||
|
||
# GET /campaigns/1/edit | ||
def edit | ||
@campaign = Campaign.find(params[:id]) | ||
end | ||
|
||
# POST /campaigns | ||
# POST /campaigns.xml | ||
def create | ||
@campaign = Campaign.new(params[:campaign]) | ||
|
||
respond_to do |format| | ||
if @campaign.save | ||
format.html { redirect_to(@campaign, :notice => 'Campaign was successfully created.') } | ||
format.xml { render :xml => @campaign, :status => :created, :location => @campaign } | ||
else | ||
format.html { render :action => "new" } | ||
format.xml { render :xml => @campaign.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# PUT /campaigns/1 | ||
# PUT /campaigns/1.xml | ||
def update | ||
@campaign = Campaign.find(params[:id]) | ||
|
||
respond_to do |format| | ||
if @campaign.update_attributes(params[:campaign]) | ||
format.html { redirect_to(@campaign, :notice => 'Campaign was successfully updated.') } | ||
format.xml { head :ok } | ||
else | ||
format.html { render :action => "edit" } | ||
format.xml { render :xml => @campaign.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /campaigns/1 | ||
# DELETE /campaigns/1.xml | ||
def destroy | ||
@campaign = Campaign.find(params[:id]) | ||
@campaign.destroy | ||
|
||
respond_to do |format| | ||
format.html { redirect_to(campaigns_url) } | ||
format.xml { head :ok } | ||
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 TermsController < ApplicationController | ||
# GET /terms | ||
# GET /terms.xml | ||
def index | ||
@terms = Term.all | ||
|
||
respond_to do |format| | ||
format.html # index.html.erb | ||
format.xml { render :xml => @terms } | ||
end | ||
end | ||
|
||
# GET /terms/1 | ||
# GET /terms/1.xml | ||
def show | ||
@term = Term.find(params[:id]) | ||
|
||
respond_to do |format| | ||
format.html # show.html.erb | ||
format.xml { render :xml => @term } | ||
end | ||
end | ||
|
||
# GET /terms/new | ||
# GET /terms/new.xml | ||
def new | ||
@term = Term.new | ||
|
||
respond_to do |format| | ||
format.html # new.html.erb | ||
format.xml { render :xml => @term } | ||
end | ||
end | ||
|
||
# GET /terms/1/edit | ||
def edit | ||
@term = Term.find(params[:id]) | ||
end | ||
|
||
# POST /terms | ||
# POST /terms.xml | ||
def create | ||
@term = Term.new(params[:term]) | ||
|
||
respond_to do |format| | ||
if @term.save | ||
format.html { redirect_to(@term, :notice => 'Term was successfully created.') } | ||
format.xml { render :xml => @term, :status => :created, :location => @term } | ||
else | ||
format.html { render :action => "new" } | ||
format.xml { render :xml => @term.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# PUT /terms/1 | ||
# PUT /terms/1.xml | ||
def update | ||
@term = Term.find(params[:id]) | ||
|
||
respond_to do |format| | ||
if @term.update_attributes(params[:term]) | ||
format.html { redirect_to(@term, :notice => 'Term was successfully updated.') } | ||
format.xml { head :ok } | ||
else | ||
format.html { render :action => "edit" } | ||
format.xml { render :xml => @term.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /terms/1 | ||
# DELETE /terms/1.xml | ||
def destroy | ||
@term = Term.find(params[:id]) | ||
@term.destroy | ||
|
||
respond_to do |format| | ||
format.html { redirect_to(terms_url) } | ||
format.xml { head :ok } | ||
end | ||
end | ||
end |
Oops, something went wrong.