Merge branch 'master' of https://github.com/andreassteph/fetsite
Conflicts: config/routes.rb
This commit is contained in:
83
app/controllers/fetprofiles_controller.rb
Normal file
83
app/controllers/fetprofiles_controller.rb
Normal file
@@ -0,0 +1,83 @@
|
||||
class FetprofilesController < ApplicationController
|
||||
# GET /fetprofiles
|
||||
# GET /fetprofiles.json
|
||||
def index
|
||||
@fetprofiles = Fetprofile.all
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @fetprofiles }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fetprofiles/1
|
||||
# GET /fetprofiles/1.json
|
||||
def show
|
||||
@fetprofile = Fetprofile.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
format.json { render json: @fetprofile }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fetprofiles/new
|
||||
# GET /fetprofiles/new.json
|
||||
def new
|
||||
@fetprofile = Fetprofile.new
|
||||
|
||||
respond_to do |format|
|
||||
format.html # new.html.erb
|
||||
format.json { render json: @fetprofile }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fetprofiles/1/edit
|
||||
def edit
|
||||
@fetprofile = Fetprofile.find(params[:id])
|
||||
end
|
||||
|
||||
# POST /fetprofiles
|
||||
# POST /fetprofiles.json
|
||||
def create
|
||||
@fetprofile = Fetprofile.new(params[:fetprofile])
|
||||
|
||||
respond_to do |format|
|
||||
if @fetprofile.save
|
||||
format.html { redirect_to @fetprofile, notice: 'Fetprofile was successfully created.' }
|
||||
format.json { render json: @fetprofile, status: :created, location: @fetprofile }
|
||||
else
|
||||
format.html { render action: "new" }
|
||||
format.json { render json: @fetprofile.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# PUT /fetprofiles/1
|
||||
# PUT /fetprofiles/1.json
|
||||
def update
|
||||
@fetprofile = Fetprofile.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
if @fetprofile.update_attributes(params[:fetprofile])
|
||||
format.html { redirect_to @fetprofile, notice: 'Fetprofile was successfully updated.' }
|
||||
format.json { head :no_content }
|
||||
else
|
||||
format.html { render action: "edit" }
|
||||
format.json { render json: @fetprofile.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# DELETE /fetprofiles/1
|
||||
# DELETE /fetprofiles/1.json
|
||||
def destroy
|
||||
@fetprofile = Fetprofile.find(params[:id])
|
||||
@fetprofile.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to fetprofiles_url }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
end
|
||||
end
|
||||
83
app/controllers/fetzneditions_controller.rb
Normal file
83
app/controllers/fetzneditions_controller.rb
Normal file
@@ -0,0 +1,83 @@
|
||||
class FetzneditionsController < ApplicationController
|
||||
# GET /fetzneditions
|
||||
# GET /fetzneditions.json
|
||||
def index
|
||||
@fetzneditions = Fetznedition.all
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @fetzneditions }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fetzneditions/1
|
||||
# GET /fetzneditions/1.json
|
||||
def show
|
||||
@fetznedition = Fetznedition.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
format.json { render json: @fetznedition }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fetzneditions/new
|
||||
# GET /fetzneditions/new.json
|
||||
def new
|
||||
@fetznedition = Fetznedition.new
|
||||
|
||||
respond_to do |format|
|
||||
format.html # new.html.erb
|
||||
format.json { render json: @fetznedition }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fetzneditions/1/edit
|
||||
def edit
|
||||
@fetznedition = Fetznedition.find(params[:id])
|
||||
end
|
||||
|
||||
# POST /fetzneditions
|
||||
# POST /fetzneditions.json
|
||||
def create
|
||||
@fetznedition = Fetznedition.new(params[:fetznedition])
|
||||
|
||||
respond_to do |format|
|
||||
if @fetznedition.save
|
||||
format.html { redirect_to @fetznedition, notice: 'Fetznedition was successfully created.' }
|
||||
format.json { render json: @fetznedition, status: :created, location: @fetznedition }
|
||||
else
|
||||
format.html { render action: "new" }
|
||||
format.json { render json: @fetznedition.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# PUT /fetzneditions/1
|
||||
# PUT /fetzneditions/1.json
|
||||
def update
|
||||
@fetznedition = Fetznedition.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
if @fetznedition.update_attributes(params[:fetznedition])
|
||||
format.html { redirect_to @fetznedition, notice: 'Fetznedition was successfully updated.' }
|
||||
format.json { head :no_content }
|
||||
else
|
||||
format.html { render action: "edit" }
|
||||
format.json { render json: @fetznedition.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# DELETE /fetzneditions/1
|
||||
# DELETE /fetzneditions/1.json
|
||||
def destroy
|
||||
@fetznedition = Fetznedition.find(params[:id])
|
||||
@fetznedition.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to fetzneditions_url }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
end
|
||||
end
|
||||
83
app/controllers/fotos_controller.rb
Normal file
83
app/controllers/fotos_controller.rb
Normal file
@@ -0,0 +1,83 @@
|
||||
class FotosController < ApplicationController
|
||||
# GET /fotos
|
||||
# GET /fotos.json
|
||||
def index
|
||||
@fotos = Foto.all
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @fotos }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fotos/1
|
||||
# GET /fotos/1.json
|
||||
def show
|
||||
@foto = Foto.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
format.json { render json: @foto }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fotos/new
|
||||
# GET /fotos/new.json
|
||||
def new
|
||||
@foto = Foto.new
|
||||
|
||||
respond_to do |format|
|
||||
format.html # new.html.erb
|
||||
format.json { render json: @foto }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /fotos/1/edit
|
||||
def edit
|
||||
@foto = Foto.find(params[:id])
|
||||
end
|
||||
|
||||
# POST /fotos
|
||||
# POST /fotos.json
|
||||
def create
|
||||
@foto = Foto.new(params[:foto])
|
||||
|
||||
respond_to do |format|
|
||||
if @foto.save
|
||||
format.html { redirect_to @foto, notice: 'Foto was successfully created.' }
|
||||
format.json { render json: @foto, status: :created, location: @foto }
|
||||
else
|
||||
format.html { render action: "new" }
|
||||
format.json { render json: @foto.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# PUT /fotos/1
|
||||
# PUT /fotos/1.json
|
||||
def update
|
||||
@foto = Foto.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
if @foto.update_attributes(params[:foto])
|
||||
format.html { redirect_to @foto, notice: 'Foto was successfully updated.' }
|
||||
format.json { head :no_content }
|
||||
else
|
||||
format.html { render action: "edit" }
|
||||
format.json { render json: @foto.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# DELETE /fotos/1
|
||||
# DELETE /fotos/1.json
|
||||
def destroy
|
||||
@foto = Foto.find(params[:id])
|
||||
@foto.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to fotos_url }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
end
|
||||
end
|
||||
83
app/controllers/galleries_controller.rb
Normal file
83
app/controllers/galleries_controller.rb
Normal file
@@ -0,0 +1,83 @@
|
||||
class GalleriesController < ApplicationController
|
||||
# GET /galleries
|
||||
# GET /galleries.json
|
||||
def index
|
||||
@galleries = Gallery.all
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @galleries }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /galleries/1
|
||||
# GET /galleries/1.json
|
||||
def show
|
||||
@gallery = Gallery.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
format.json { render json: @gallery }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /galleries/new
|
||||
# GET /galleries/new.json
|
||||
def new
|
||||
@gallery = Gallery.new
|
||||
|
||||
respond_to do |format|
|
||||
format.html # new.html.erb
|
||||
format.json { render json: @gallery }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /galleries/1/edit
|
||||
def edit
|
||||
@gallery = Gallery.find(params[:id])
|
||||
end
|
||||
|
||||
# POST /galleries
|
||||
# POST /galleries.json
|
||||
def create
|
||||
@gallery = Gallery.new(params[:gallery])
|
||||
|
||||
respond_to do |format|
|
||||
if @gallery.save
|
||||
format.html { redirect_to @gallery, notice: 'Gallery was successfully created.' }
|
||||
format.json { render json: @gallery, status: :created, location: @gallery }
|
||||
else
|
||||
format.html { render action: "new" }
|
||||
format.json { render json: @gallery.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# PUT /galleries/1
|
||||
# PUT /galleries/1.json
|
||||
def update
|
||||
@gallery = Gallery.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
if @gallery.update_attributes(params[:gallery])
|
||||
format.html { redirect_to @gallery, notice: 'Gallery was successfully updated.' }
|
||||
format.json { head :no_content }
|
||||
else
|
||||
format.html { render action: "edit" }
|
||||
format.json { render json: @gallery.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# DELETE /galleries/1
|
||||
# DELETE /galleries/1.json
|
||||
def destroy
|
||||
@gallery = Gallery.find(params[:id])
|
||||
@gallery.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to galleries_url }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
end
|
||||
end
|
||||
83
app/controllers/gremien_controller.rb
Normal file
83
app/controllers/gremien_controller.rb
Normal file
@@ -0,0 +1,83 @@
|
||||
class GremienController < ApplicationController
|
||||
# GET /gremien
|
||||
# GET /gremien.json
|
||||
def index
|
||||
@gremien = Gremium.all
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @gremien }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /gremien/1
|
||||
# GET /gremien/1.json
|
||||
def show
|
||||
@gremium = Gremium.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
format.json { render json: @gremium }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /gremien/new
|
||||
# GET /gremien/new.json
|
||||
def new
|
||||
@gremium = Gremium.new
|
||||
|
||||
respond_to do |format|
|
||||
format.html # new.html.erb
|
||||
format.json { render json: @gremium }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /gremien/1/edit
|
||||
def edit
|
||||
@gremium = Gremium.find(params[:id])
|
||||
end
|
||||
|
||||
# POST /gremien
|
||||
# POST /gremien.json
|
||||
def create
|
||||
@gremium = Gremium.new(params[:gremium])
|
||||
|
||||
respond_to do |format|
|
||||
if @gremium.save
|
||||
format.html { redirect_to @gremium, notice: 'Gremium was successfully created.' }
|
||||
format.json { render json: @gremium, status: :created, location: @gremium }
|
||||
else
|
||||
format.html { render action: "new" }
|
||||
format.json { render json: @gremium.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# PUT /gremien/1
|
||||
# PUT /gremien/1.json
|
||||
def update
|
||||
@gremium = Gremium.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
if @gremium.update_attributes(params[:gremium])
|
||||
format.html { redirect_to @gremium, notice: 'Gremium was successfully updated.' }
|
||||
format.json { head :no_content }
|
||||
else
|
||||
format.html { render action: "edit" }
|
||||
format.json { render json: @gremium.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# DELETE /gremien/1
|
||||
# DELETE /gremien/1.json
|
||||
def destroy
|
||||
@gremium = Gremium.find(params[:id])
|
||||
@gremium.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to gremien_url }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
end
|
||||
end
|
||||
83
app/controllers/memberships_controller.rb
Normal file
83
app/controllers/memberships_controller.rb
Normal file
@@ -0,0 +1,83 @@
|
||||
class MembershipsController < ApplicationController
|
||||
# GET /memberships
|
||||
# GET /memberships.json
|
||||
def index
|
||||
@memberships = Membership.all
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @memberships }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /memberships/1
|
||||
# GET /memberships/1.json
|
||||
def show
|
||||
@membership = Membership.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
format.json { render json: @membership }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /memberships/new
|
||||
# GET /memberships/new.json
|
||||
def new
|
||||
@membership = Membership.new
|
||||
|
||||
respond_to do |format|
|
||||
format.html # new.html.erb
|
||||
format.json { render json: @membership }
|
||||
end
|
||||
end
|
||||
|
||||
# GET /memberships/1/edit
|
||||
def edit
|
||||
@membership = Membership.find(params[:id])
|
||||
end
|
||||
|
||||
# POST /memberships
|
||||
# POST /memberships.json
|
||||
def create
|
||||
@membership = Membership.new(params[:membership])
|
||||
|
||||
respond_to do |format|
|
||||
if @membership.save
|
||||
format.html { redirect_to @membership, notice: 'Membership was successfully created.' }
|
||||
format.json { render json: @membership, status: :created, location: @membership }
|
||||
else
|
||||
format.html { render action: "new" }
|
||||
format.json { render json: @membership.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# PUT /memberships/1
|
||||
# PUT /memberships/1.json
|
||||
def update
|
||||
@membership = Membership.find(params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
if @membership.update_attributes(params[:membership])
|
||||
format.html { redirect_to @membership, notice: 'Membership was successfully updated.' }
|
||||
format.json { head :no_content }
|
||||
else
|
||||
format.html { render action: "edit" }
|
||||
format.json { render json: @membership.errors, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# DELETE /memberships/1
|
||||
# DELETE /memberships/1.json
|
||||
def destroy
|
||||
@membership = Membership.find(params[:id])
|
||||
@membership.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to memberships_url }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user