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
131 changed files
with
5,764 additions
and
0 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,2 +1,3 @@ | ||
target | ||
root_* | ||
tomcat |
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 BoardConfigsController < ApplicationController | ||
|
||
# GET /board_configs | ||
# GET /board_configs.xml | ||
def index | ||
@board_configs = BoardConfig.all() | ||
|
||
respond_to do |format| | ||
format.html | ||
format.xml { render :xml => @board_configs } | ||
end | ||
end | ||
|
||
# GET /board_configs/1 | ||
# GET /board_configs/1.xml | ||
def show | ||
@board_config = BoardConfig.get!(params[:id]) | ||
|
||
respond_to do |format| | ||
format.html # show.html.erb | ||
format.xml { render :xml => @board_config } | ||
end | ||
end | ||
|
||
# GET /board_configs/new | ||
# GET /board_configs/new.xml | ||
def new | ||
@board_config = BoardConfig.new | ||
|
||
respond_to do |format| | ||
format.html # new.html.erb | ||
format.xml { render :xml => @board_config } | ||
end | ||
end | ||
|
||
# GET /board_configs/1/edit | ||
def edit | ||
@board_config = BoardConfig.get!(params[:id]) | ||
end | ||
|
||
# POST /board_configs | ||
# POST /board_configs.xml | ||
def create | ||
@board_config = BoardConfig.new(params[:board_config]) | ||
@board_config.current_user = current_user | ||
|
||
respond_to do |format| | ||
if @board_config.save | ||
flash[:notice] = 'BoardConfig was successfully created.' | ||
format.html { redirect_to(board_config_url(@board_config.id)) } | ||
format.xml { render :xml => @board_config, :status => :created, :location => board_config_url(@board_config.id) + ".xml" } | ||
else | ||
format.html { render :action => "new" } | ||
format.xml { render :xml => @board_config.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# PUT /board_configs/1 | ||
# PUT /board_configs/1.xml | ||
def update | ||
@board_config = BoardConfig.get!(params[:id]) | ||
@board_config.current_user = current_user | ||
|
||
respond_to do |format| | ||
if @board_config.update(params[:board_config]) or not @board_config.dirty? | ||
flash[:notice] = 'BoardConfig was successfully updated.' | ||
format.html { redirect_to(board_config_url(@board_config.id)) } | ||
format.xml { render :xml => @board_config } | ||
else | ||
format.html { render :action => "edit" } | ||
format.xml { render :xml => @board_config.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /board_configs/1 | ||
# DELETE /board_configs/1.xml | ||
def destroy | ||
@board_config = BoardConfig.get(params[:id]) | ||
@board_config.current_user = current_user | ||
@board_config.destroy if @board_config | ||
|
||
respond_to do |format| | ||
flash[:notice] = 'BoardConfig was successfully deleted.' | ||
format.html { redirect_to(board_configs_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,90 @@ | ||
class BoardsController < ApplicationController | ||
|
||
# GET /boards | ||
# GET /boards.xml | ||
def index | ||
@boards = Board.all() | ||
|
||
respond_to do |format| | ||
format.html | ||
format.xml { render :xml => @boards } | ||
end | ||
end | ||
|
||
# GET /boards/1 | ||
# GET /boards/1.xml | ||
def show | ||
@board = Board.get!(params[:id]) | ||
|
||
respond_to do |format| | ||
format.html # show.html.erb | ||
format.xml { render :xml => @board } | ||
end | ||
end | ||
|
||
# GET /boards/new | ||
# GET /boards/new.xml | ||
def new | ||
@board = Board.new | ||
|
||
respond_to do |format| | ||
format.html # new.html.erb | ||
format.xml { render :xml => @board } | ||
end | ||
end | ||
|
||
# GET /boards/1/edit | ||
def edit | ||
@board = Board.get!(params[:id]) | ||
end | ||
|
||
# POST /boards | ||
# POST /boards.xml | ||
def create | ||
@board = Board.new(params[:board]) | ||
@board.current_user = current_user | ||
|
||
respond_to do |format| | ||
if @board.save | ||
flash[:notice] = 'Board was successfully created.' | ||
format.html { redirect_to(board_url(@board.id)) } | ||
format.xml { render :xml => @board, :status => :created, :location => board_url(@board.id) + ".xml" } | ||
else | ||
format.html { render :action => "new" } | ||
format.xml { render :xml => @board.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# PUT /boards/1 | ||
# PUT /boards/1.xml | ||
def update | ||
@board = Board.get!(params[:id]) | ||
@board.current_user = current_user | ||
|
||
respond_to do |format| | ||
if @board.update(params[:board]) or not @board.dirty? | ||
flash[:notice] = 'Board was successfully updated.' | ||
format.html { redirect_to(board_url(@board.id)) } | ||
format.xml { render :xml => @board } | ||
else | ||
format.html { render :action => "edit" } | ||
format.xml { render :xml => @board.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /boards/1 | ||
# DELETE /boards/1.xml | ||
def destroy | ||
@board = Board.get(params[:id]) | ||
@board.current_user = current_user | ||
@board.destroy if @board | ||
|
||
respond_to do |format| | ||
flash[:notice] = 'Board was successfully deleted.' | ||
format.html { redirect_to(boards_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,90 @@ | ||
class ListingsController < ApplicationController | ||
|
||
# GET /listings | ||
# GET /listings.xml | ||
def index | ||
@listings = Listing.all() | ||
|
||
respond_to do |format| | ||
format.html | ||
format.xml { render :xml => @listings } | ||
end | ||
end | ||
|
||
# GET /listings/1 | ||
# GET /listings/1.xml | ||
def show | ||
@listing = Listing.get!(params[:id]) | ||
|
||
respond_to do |format| | ||
format.html # show.html.erb | ||
format.xml { render :xml => @listing } | ||
end | ||
end | ||
|
||
# GET /listings/new | ||
# GET /listings/new.xml | ||
def new | ||
@listing = Listing.new | ||
|
||
respond_to do |format| | ||
format.html # new.html.erb | ||
format.xml { render :xml => @listing } | ||
end | ||
end | ||
|
||
# GET /listings/1/edit | ||
def edit | ||
@listing = Listing.get!(params[:id]) | ||
end | ||
|
||
# POST /listings | ||
# POST /listings.xml | ||
def create | ||
@listing = Listing.new(params[:listing]) | ||
@listing.current_user = current_user | ||
|
||
respond_to do |format| | ||
if @listing.save | ||
flash[:notice] = 'Listing was successfully created.' | ||
format.html { redirect_to(listing_url(@listing.id)) } | ||
format.xml { render :xml => @listing, :status => :created, :location => listing_url(@listing.id) + ".xml" } | ||
else | ||
format.html { render :action => "new" } | ||
format.xml { render :xml => @listing.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# PUT /listings/1 | ||
# PUT /listings/1.xml | ||
def update | ||
@listing = Listing.get!(params[:id]) | ||
@listing.current_user = current_user | ||
|
||
respond_to do |format| | ||
if @listing.update(params[:listing]) or not @listing.dirty? | ||
flash[:notice] = 'Listing was successfully updated.' | ||
format.html { redirect_to(listing_url(@listing.id)) } | ||
format.xml { render :xml => @listing } | ||
else | ||
format.html { render :action => "edit" } | ||
format.xml { render :xml => @listing.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /listings/1 | ||
# DELETE /listings/1.xml | ||
def destroy | ||
@listing = Listing.get(params[:id]) | ||
@listing.current_user = current_user | ||
@listing.destroy if @listing | ||
|
||
respond_to do |format| | ||
flash[:notice] = 'Listing was successfully deleted.' | ||
format.html { redirect_to(listings_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,90 @@ | ||
class VenueConfigsController < ApplicationController | ||
|
||
# GET /venue_configs | ||
# GET /venue_configs.xml | ||
def index | ||
@venue_configs = VenueConfig.all() | ||
|
||
respond_to do |format| | ||
format.html | ||
format.xml { render :xml => @venue_configs } | ||
end | ||
end | ||
|
||
# GET /venue_configs/1 | ||
# GET /venue_configs/1.xml | ||
def show | ||
@venue_config = VenueConfig.get!(params[:id]) | ||
|
||
respond_to do |format| | ||
format.html # show.html.erb | ||
format.xml { render :xml => @venue_config } | ||
end | ||
end | ||
|
||
# GET /venue_configs/new | ||
# GET /venue_configs/new.xml | ||
def new | ||
@venue_config = VenueConfig.new | ||
|
||
respond_to do |format| | ||
format.html # new.html.erb | ||
format.xml { render :xml => @venue_config } | ||
end | ||
end | ||
|
||
# GET /venue_configs/1/edit | ||
def edit | ||
@venue_config = VenueConfig.get!(params[:id]) | ||
end | ||
|
||
# POST /venue_configs | ||
# POST /venue_configs.xml | ||
def create | ||
@venue_config = VenueConfig.new(params[:venue_config]) | ||
@venue_config.current_user = current_user | ||
|
||
respond_to do |format| | ||
if @venue_config.save | ||
flash[:notice] = 'VenueConfig was successfully created.' | ||
format.html { redirect_to(venue_config_url(@venue_config.id)) } | ||
format.xml { render :xml => @venue_config, :status => :created, :location => venue_config_url(@venue_config.id) + ".xml" } | ||
else | ||
format.html { render :action => "new" } | ||
format.xml { render :xml => @venue_config.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# PUT /venue_configs/1 | ||
# PUT /venue_configs/1.xml | ||
def update | ||
@venue_config = VenueConfig.get!(params[:id]) | ||
@venue_config.current_user = current_user | ||
|
||
respond_to do |format| | ||
if @venue_config.update(params[:venue_config]) or not @venue_config.dirty? | ||
flash[:notice] = 'VenueConfig was successfully updated.' | ||
format.html { redirect_to(venue_config_url(@venue_config.id)) } | ||
format.xml { render :xml => @venue_config } | ||
else | ||
format.html { render :action => "edit" } | ||
format.xml { render :xml => @venue_config.errors, :status => :unprocessable_entity } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /venue_configs/1 | ||
# DELETE /venue_configs/1.xml | ||
def destroy | ||
@venue_config = VenueConfig.get(params[:id]) | ||
@venue_config.current_user = current_user | ||
@venue_config.destroy if @venue_config | ||
|
||
respond_to do |format| | ||
flash[:notice] = 'VenueConfig was successfully deleted.' | ||
format.html { redirect_to(venue_configs_url) } | ||
format.xml { head :ok } | ||
end | ||
end | ||
end |
Oops, something went wrong.