Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Deleting a backup directory

  • Loading branch information...
commit 8005f5dbe18fc94a04f1e4ede2360b7430c613a8 1 parent 1c8176f
@watchdogtimer authored
View
3  appbak/controllers/application_controller.rb
@@ -1,3 +0,0 @@
-class ApplicationController < ActionController::Base
- protect_from_forgery
-end
View
83 appbak/controllers/game_sets_controller.rb
@@ -1,83 +0,0 @@
-class GameSetsController < ApplicationController
- # GET /game_sets
- # GET /game_sets.xml
- def index
- @game_sets = GameSet.all
-
- respond_to do |format|
- format.html # index.html.erb
- format.xml { render :xml => @game_sets }
- end
- end
-
- # GET /game_sets/1
- # GET /game_sets/1.xml
- def show
- @game_set = GameSet.find(params[:id])
-
- respond_to do |format|
- format.html # show.html.erb
- format.xml { render :xml => @game_set }
- end
- end
-
- # GET /game_sets/new
- # GET /game_sets/new.xml
- def new
- @game_set = GameSet.new
-
- respond_to do |format|
- format.html # new.html.erb
- format.xml { render :xml => @game_set }
- end
- end
-
- # GET /game_sets/1/edit
- def edit
- @game_set = GameSet.find(params[:id])
- end
-
- # POST /game_sets
- # POST /game_sets.xml
- def create
- @game_set = GameSet.new(params[:game_set])
-
- respond_to do |format|
- if @game_set.save
- format.html { redirect_to(@game_set, :notice => 'Game set was successfully created.') }
- format.xml { render :xml => @game_set, :status => :created, :location => @game_set }
- else
- format.html { render :action => "new" }
- format.xml { render :xml => @game_set.errors, :status => :unprocessable_entity }
- end
- end
- end
-
- # PUT /game_sets/1
- # PUT /game_sets/1.xml
- def update
- @game_set = GameSet.find(params[:id])
-
- respond_to do |format|
- if @game_set.update_attributes(params[:game_set])
- format.html { redirect_to(@game_set, :notice => 'Game set was successfully updated.') }
- format.xml { head :ok }
- else
- format.html { render :action => "edit" }
- format.xml { render :xml => @game_set.errors, :status => :unprocessable_entity }
- end
- end
- end
-
- # DELETE /game_sets/1
- # DELETE /game_sets/1.xml
- def destroy
- @game_set = GameSet.find(params[:id])
- @game_set.destroy
-
- respond_to do |format|
- format.html { redirect_to(game_sets_url) }
- format.xml { head :ok }
- end
- end
-end
View
2  appbak/helpers/application_helper.rb
@@ -1,2 +0,0 @@
-module ApplicationHelper
-end
View
2  appbak/helpers/game_sets_helper.rb
@@ -1,2 +0,0 @@
-module GameSetsHelper
-end
View
46 appbak/helpers/tabs_helper.rb
@@ -1,46 +0,0 @@
-module TabsHelper
-
- def tabs_for( *options, &block )
- raise ArgumentError, "Missing block" unless block_given?
- raw TabsHelper::TabsRenderer.new( *options, &block ).render
- end
-
- class TabsRenderer
- def initialize(options={}, &block)
- @template = eval( 'self', block.binding )
- @options = options
- @tabs = []
- end
-
- def create(tab_id, tab_text, options={}, &block)
- raise "Block needed for TabsRenderer#CREATE" unless block_given?
- @tabs << [tab_id, tab_text, options, block]
- end
-
- def render
- p content_tag(:div, (render_tabs.html_safe + render_bodies.html_safe), {:id => :tabs}.merge(@options))
- end
-
- private # ---------------------------------------------------------------------------
-
- def render_tabs
- content_tag(:ul, render_headers.html_safe)
- end
-
- def render_headers
- @tabs.collect do |tab|
- content_tag(:li, link_to(content_tag(:span, tab[1]), "##{tab[0]}") )
- end.to_s
- end
-
- def render_bodies
- @tabs.collect do |tab|
- content_tag(:div, capture(&tab[3]), tab[2].merge(:id => tab[0]))
- end.to_s
- end
-
- def method_missing(*args, &block)
- @template.send(*args, &block)
- end
- end
-end
View
2  appbak/models/game_set.rb
@@ -1,2 +0,0 @@
-class GameSet < ActiveRecord::Base
-end
View
66 appbak/models/user.rb
@@ -1,66 +0,0 @@
-class User < ActiveRecord::Base
- acts_as_authentic
- #acts_as_authorized_user
- #acts_as_authorizable
- has_many :organizations
- has_many :roles_users, :dependent => :delete_all
- has_many :roles, :through => :roles_users
- has_many :authorized_models
- #has_many :models, :through => :authorized_models
- before_save :set_current_user_for_model_security
-
- def role_symbols
- user_roles = (roles || []).map {|r| r.title.to_sym}
- if self.organizations.size > 0
- user_roles << :organization_owner
- end
- user_roles << :guest
- user_roles << :league_admin
- user_roles << :organization_admin
- user_roles << :profile_owner
- user_roles << :league_player
- user_roles << :logged_in_user
-
- if ENV['RAILS_ENV'] == "development" || self.login == "tom.hartwell@gmail.com" || self.login == "oneaim@gmail.com" || self.login == "ratisbest@hotmail.com" || self.login == "jclorfeine@hotmail.com"
- user_roles << :super_admin
- end
- user_roles
- end
-
- validates_confirmation_of :login, :password
- validates_format_of :login, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i,
- :message => "Email is not formatted correctly."
-
- # Add roles eventually
- def admin?
- return false if ENV['RAILS_ENV'] == "development" #&& self.login == "tom@gmail.com"
- self.login == "tom.hartwell@gmail.com" || self.login == "jclorfeine@hotmail.com" || self.login == "ratisbest@hotmail.com"
- end
-
- def admin_or_owner?
- (self == current_user) || admin?
- end
-
- def name
- "#{first_name} #{last_name}"
- end
-
- def deliver_password_reset_instructions!
- reset_perishable_token!
- Notifier.deliver_password_reset_instructions(self)
- end
-
- #def has_role?(role)
- # self.roles.count(:conditions => ['name = ?', role]) > 0
- #end
-
- #def add_role(role)
- # return if self.has_role?(role)
- # self.roles << Role.find_by_name(role)
- #end
- protected
-
- def set_current_user_for_model_security
- Authorization.current_user = self
- end
-end
View
33 appbak/views/game_sets/_form.html.erb
@@ -1,33 +0,0 @@
-<%= form_for(@game_set) do |f| %>
- <% if @game_set.errors.any? %>
- <div id="error_explanation">
- <h2><%= pluralize(@game_set.errors.count, "error") %> prohibited this game_set from being saved:</h2>
-
- <ul>
- <% @game_set.errors.full_messages.each do |msg| %>
- <li><%= msg %></li>
- <% end %>
- </ul>
- </div>
- <% end %>
-
- <div class="field">
- <%= f.label :league_id %><br />
- <%= f.text_field :league_id %>
- </div>
- <div class="field">
- <%= f.label :team_id %><br />
- <%= f.text_field :team_id %>
- </div>
- <div class="field">
- <%= f.label :opponent_id %><br />
- <%= f.text_field :opponent_id %>
- </div>
- <div class="field">
- <%= f.label :time %><br />
- <%= f.datetime_select :time %>
- </div>
- <div class="actions">
- <%= f.submit %>
- </div>
-<% end %>
View
6 appbak/views/game_sets/edit.html.erb
@@ -1,6 +0,0 @@
-<h1>Editing game_set</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Show', @game_set %> |
-<%= link_to 'Back', game_sets_path %>
View
29 appbak/views/game_sets/index.html.erb
@@ -1,29 +0,0 @@
-<h1>Listing game_sets</h1>
-
-<table>
- <tr>
- <th>League</th>
- <th>Team</th>
- <th>Opponent</th>
- <th>Time</th>
- <th></th>
- <th></th>
- <th></th>
- </tr>
-
-<% @game_sets.each do |game_set| %>
- <tr>
- <td><%= game_set.league_id %></td>
- <td><%= game_set.team_id %></td>
- <td><%= game_set.opponent_id %></td>
- <td><%= game_set.time %></td>
- <td><%= link_to 'Show', game_set %></td>
- <td><%= link_to 'Edit', edit_game_set_path(game_set) %></td>
- <td><%= link_to 'Destroy', game_set, :confirm => 'Are you sure?', :method => :delete %></td>
- </tr>
-<% end %>
-</table>
-
-<br />
-
-<%= link_to 'New Game set', new_game_set_path %>
View
5 appbak/views/game_sets/new.html.erb
@@ -1,5 +0,0 @@
-<h1>New game_set</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Back', game_sets_path %>
View
25 appbak/views/game_sets/show.html.erb
@@ -1,25 +0,0 @@
-<p id="notice"><%= notice %></p>
-
-<p>
- <b>League:</b>
- <%= @game_set.league_id %>
-</p>
-
-<p>
- <b>Team:</b>
- <%= @game_set.team_id %>
-</p>
-
-<p>
- <b>Opponent:</b>
- <%= @game_set.opponent_id %>
-</p>
-
-<p>
- <b>Time:</b>
- <%= @game_set.time %>
-</p>
-
-
-<%= link_to 'Edit', edit_game_set_path(@game_set) %> |
-<%= link_to 'Back', game_sets_path %>
View
14 appbak/views/layouts/application.html.erb
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>Sportsmgmt</title>
- <%= stylesheet_link_tag :all %>
- <%= javascript_include_tag :defaults %>
- <%= csrf_meta_tag %>
-</head>
-<body>
-
-<%= yield %>
-
-</body>
-</html>
Please sign in to comment.
Something went wrong with that request. Please try again.