mole 1.0.12 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- metadata +24 -146
- data/History.txt +0 -17
- data/Manifest.txt +0 -132
- data/README.txt +0 -216
- data/Rakefile +0 -46
- data/config/database.yml +0 -21
- data/config/test_database.yml +0 -69
- data/lib/mole.rb +0 -260
- data/lib/mole/db/migrate.rb +0 -90
- data/lib/mole/e_mole.rb +0 -75
- data/lib/mole/logger.rb +0 -134
- data/lib/mole/models/mole_feature.rb +0 -58
- data/lib/mole/models/mole_log.rb +0 -31
- data/lib/mole/module.rb +0 -292
- data/lib/mole/moler.rb +0 -71
- data/lib/mole/utils/frameworks.rb +0 -53
- data/lib/mole/version.rb +0 -15
- data/samples/merbapp/README +0 -14
- data/samples/merbapp/Rakefile +0 -124
- data/samples/merbapp/app/controllers/application.rb +0 -3
- data/samples/merbapp/app/controllers/exceptions.rb +0 -13
- data/samples/merbapp/app/controllers/moled.rb +0 -25
- data/samples/merbapp/app/helpers/global_helper.rb +0 -5
- data/samples/merbapp/app/mailers/views/layout/application.html.erb +0 -1
- data/samples/merbapp/app/mailers/views/layout/application.text.erb +0 -1
- data/samples/merbapp/app/parts/views/layout/application.html.erb +0 -1
- data/samples/merbapp/app/views/exceptions/internal_server_error.html.erb +0 -216
- data/samples/merbapp/app/views/exceptions/not_acceptable.html.erb +0 -38
- data/samples/merbapp/app/views/exceptions/not_found.html.erb +0 -40
- data/samples/merbapp/app/views/layout/application.html.erb +0 -11
- data/samples/merbapp/app/views/moled/index.html.erb +0 -5
- data/samples/merbapp/app/views/moled/result.html.erb +0 -5
- data/samples/merbapp/config/boot.rb +0 -11
- data/samples/merbapp/config/dependencies.rb +0 -41
- data/samples/merbapp/config/environments/development.rb +0 -1
- data/samples/merbapp/config/environments/production.rb +0 -1
- data/samples/merbapp/config/environments/test.rb +0 -1
- data/samples/merbapp/config/merb.yml +0 -82
- data/samples/merbapp/config/merb_init.rb +0 -26
- data/samples/merbapp/config/mole_config.rb +0 -33
- data/samples/merbapp/config/router.rb +0 -38
- data/samples/merbapp/config/upload.conf +0 -0
- data/samples/merbapp/public/images/merb.jpg +0 -0
- data/samples/merbapp/public/merb.fcgi +0 -6
- data/samples/merbapp/public/stylesheets/master.css +0 -119
- data/samples/merbapp/script/destroy +0 -32
- data/samples/merbapp/script/generate +0 -32
- data/samples/merbapp/script/stop_merb +0 -13
- data/samples/merbapp/spec/spec_helper.rb +0 -15
- data/samples/merbapp/test/test_helper.rb +0 -14
- data/samples/railsapp/README +0 -14
- data/samples/railsapp/Rakefile +0 -10
- data/samples/railsapp/app/controllers/application.rb +0 -13
- data/samples/railsapp/app/controllers/moled_controller.rb +0 -23
- data/samples/railsapp/app/helpers/application_helper.rb +0 -3
- data/samples/railsapp/app/views/moled/index.html.erb +0 -5
- data/samples/railsapp/app/views/moled/result.html.erb +0 -5
- data/samples/railsapp/config/boot.rb +0 -109
- data/samples/railsapp/config/database.yml +0 -13
- data/samples/railsapp/config/environment.rb +0 -59
- data/samples/railsapp/config/environments/development.rb +0 -18
- data/samples/railsapp/config/environments/production.rb +0 -20
- data/samples/railsapp/config/environments/test.rb +0 -22
- data/samples/railsapp/config/initializers/inflections.rb +0 -10
- data/samples/railsapp/config/initializers/mime_types.rb +0 -5
- data/samples/railsapp/config/initializers/mole.rb +0 -10
- data/samples/railsapp/config/moles/mole_config.rb +0 -44
- data/samples/railsapp/config/routes.rb +0 -35
- data/samples/railsapp/doc/README_FOR_APP +0 -2
- data/samples/railsapp/public/.htaccess +0 -40
- data/samples/railsapp/public/404.html +0 -30
- data/samples/railsapp/public/422.html +0 -30
- data/samples/railsapp/public/500.html +0 -30
- data/samples/railsapp/public/dispatch.cgi +0 -10
- data/samples/railsapp/public/dispatch.fcgi +0 -24
- data/samples/railsapp/public/dispatch.rb +0 -10
- data/samples/railsapp/public/favicon.ico +0 -0
- data/samples/railsapp/public/images/rails.png +0 -0
- data/samples/railsapp/public/javascripts/application.js +0 -2
- data/samples/railsapp/public/javascripts/controls.js +0 -963
- data/samples/railsapp/public/javascripts/dragdrop.js +0 -972
- data/samples/railsapp/public/javascripts/effects.js +0 -1120
- data/samples/railsapp/public/javascripts/prototype.js +0 -4225
- data/samples/railsapp/public/robots.txt +0 -5
- data/samples/railsapp/script/about +0 -3
- data/samples/railsapp/script/console +0 -3
- data/samples/railsapp/script/destroy +0 -3
- data/samples/railsapp/script/generate +0 -3
- data/samples/railsapp/script/performance/benchmarker +0 -3
- data/samples/railsapp/script/performance/profiler +0 -3
- data/samples/railsapp/script/performance/request +0 -3
- data/samples/railsapp/script/plugin +0 -3
- data/samples/railsapp/script/process/inspector +0 -3
- data/samples/railsapp/script/process/reaper +0 -3
- data/samples/railsapp/script/process/spawner +0 -3
- data/samples/railsapp/script/runner +0 -3
- data/samples/railsapp/script/server +0 -3
- data/samples/railsapp/test/test_helper.rb +0 -38
- data/samples/rubyapp/README +0 -22
- data/samples/rubyapp/bin/ruby_app +0 -35
- data/samples/rubyapp/config/mole_conf.rb +0 -31
- data/samples/rubyapp/lib/fred.rb +0 -22
- data/spec/config/auto_mole_config.rb +0 -26
- data/spec/config/mole_config.rb +0 -0
- data/spec/config/moles/fred_config.rb +0 -0
- data/spec/data/blee.rb +0 -64
- data/spec/db/migrate_spec.rb +0 -19
- data/spec/emole_spec.rb +0 -43
- data/spec/logger_spec.rb +0 -56
- data/spec/models/mole_feature_spec.rb +0 -48
- data/spec/models/mole_log_spec.rb +0 -62
- data/spec/module_spec.rb +0 -229
- data/spec/mole_spec.rb +0 -135
- data/spec/moler_spec.rb +0 -77
- data/spec/spec_helper.rb +0 -76
- data/spec/utils/framework_spec.rb +0 -99
- data/tasks/ann.rake +0 -76
- data/tasks/annotations.rake +0 -22
- data/tasks/doc.rake +0 -48
- data/tasks/gem.rake +0 -110
- data/tasks/manifest.rake +0 -49
- data/tasks/mole.rake +0 -115
- data/tasks/post_load.rake +0 -26
- data/tasks/rubyforge.rake +0 -57
- data/tasks/setup.rb +0 -227
- data/tasks/spec.rake +0 -54
- data/tasks/svn.rake +0 -44
- data/tasks/test.rake +0 -38
- data/templates/mole/e_mole/exception_alerts.rhtml +0 -14
- data/templates/mole/e_mole/feature_alerts.rhtml +0 -11
- data/templates/mole/e_mole/perf_alerts.rhtml +0 -12
@@ -1,38 +0,0 @@
|
|
1
|
-
<div id="container">
|
2
|
-
<div id="header-container">
|
3
|
-
<img src="/images/merb.jpg">
|
4
|
-
<!-- <h1>Mongrel + Erb</h1> -->
|
5
|
-
<h2>pocket rocket web framework</h2>
|
6
|
-
<hr />
|
7
|
-
</div>
|
8
|
-
|
9
|
-
<div id="left-container">
|
10
|
-
<h3>Exception:</h3>
|
11
|
-
<p><%= params[:exception] %></p>
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<div id="main-container">
|
15
|
-
<h3>Why am I seeing this page?</h3>
|
16
|
-
<p>Merb couldn't find an appropriate content_type to return,
|
17
|
-
based on what you said was available via provides() and
|
18
|
-
what the client requested. For more information, visit
|
19
|
-
http://merbivore.com/fixing_406_issues
|
20
|
-
</p>
|
21
|
-
|
22
|
-
<h3>Where can I find help?</h3>
|
23
|
-
<p>If you have any questions or if you can't figure something out, please take a
|
24
|
-
look at our <a href="http://merb.devjavu.com/"> project development page</a> or,
|
25
|
-
feel free to come chat at irc.freenode.net, channel #merb.</p>
|
26
|
-
|
27
|
-
<h3>How do I edit this page?</h3>
|
28
|
-
<p>You can change what people see when this happens byy editing <tt>app/views/exceptions/not_found.html.erb</tt>.</p>
|
29
|
-
|
30
|
-
</div>
|
31
|
-
|
32
|
-
<div id="footer-container">
|
33
|
-
<hr />
|
34
|
-
<div class="left"></div>
|
35
|
-
<div class="right">© 2007 the merb dev team</div>
|
36
|
-
<p> </p>
|
37
|
-
</div>
|
38
|
-
</div>
|
@@ -1,40 +0,0 @@
|
|
1
|
-
<div id="container">
|
2
|
-
<div id="header-container">
|
3
|
-
<img src="/images/merb.jpg">
|
4
|
-
<!-- <h1>Mongrel + Erb</h1> -->
|
5
|
-
<h2>pocket rocket web framework</h2>
|
6
|
-
<hr />
|
7
|
-
</div>
|
8
|
-
|
9
|
-
<div id="left-container">
|
10
|
-
<h3>Exception:</h3>
|
11
|
-
<p><%= params[:exception] %></p>
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<div id="main-container">
|
15
|
-
<h3>Welcome to Merb!</h3>
|
16
|
-
<p>Merb is a light-weight MVC framework written in Ruby. We hope you enjoy it.</p>
|
17
|
-
|
18
|
-
<h3>Where can I find help?</h3>
|
19
|
-
<p>If you have any questions or if you can't figure something out, please take a
|
20
|
-
look at our <a href="http://merb.devjavu.com/"> project development page</a> or,
|
21
|
-
feel free to come chat at irc.freenode.net, channel #merb.</p>
|
22
|
-
|
23
|
-
<h3>How do I edit this page?</h3>
|
24
|
-
<p>You're seeing this page because you need to edit the following files:
|
25
|
-
<ul>
|
26
|
-
<li>config/merb.yml <strong><em>(optional)</em></strong></li>
|
27
|
-
<li>config/router.rb <strong><em>(recommended)</em></strong></li>
|
28
|
-
<li>app/views/exceptions/not_found.html.erb <strong><em>(recommended)</em></strong></li>
|
29
|
-
<li>app/views/layout/application.html.erb <strong><em>(change this layout)</em></strong></li>
|
30
|
-
</ul>
|
31
|
-
</p>
|
32
|
-
</div>
|
33
|
-
|
34
|
-
<div id="footer-container">
|
35
|
-
<hr />
|
36
|
-
<div class="left"></div>
|
37
|
-
<div class="right">© 2007 the merb dev team</div>
|
38
|
-
<p> </p>
|
39
|
-
</div>
|
40
|
-
</div>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
|
3
|
-
<head>
|
4
|
-
<title>Fresh Merb App</title>
|
5
|
-
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
6
|
-
<link rel="stylesheet" href="/stylesheets/master.css" type="text/css" media="screen" charset="utf-8">
|
7
|
-
</head>
|
8
|
-
<body>
|
9
|
-
<%= catch_content :layout %>
|
10
|
-
</body>
|
11
|
-
</html>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
frozen_framework_path = File.join(File.dirname(__FILE__), "..", "framework")
|
2
|
-
|
3
|
-
unless defined?(Merb::framework_root)
|
4
|
-
if File.directory?(frozen_framework_path)
|
5
|
-
$:.unshift frozen_framework_path
|
6
|
-
require File.join(frozen_framework_path, "merb")
|
7
|
-
else
|
8
|
-
require 'rubygems' # required for test_unit loading
|
9
|
-
require 'merb'
|
10
|
-
end
|
11
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
# Make the app's "gems" directory a place where gems are loaded from
|
2
|
-
Gem.clear_paths
|
3
|
-
Gem.path.unshift(Merb.root / "gems")
|
4
|
-
|
5
|
-
# Make the app's "lib" directory a place where ruby files get "require"d from
|
6
|
-
$LOAD_PATH.unshift(Merb.root / "lib")
|
7
|
-
|
8
|
-
### Merb doesn't come with database support by default. You need
|
9
|
-
### an ORM plugin. Install one, and uncomment one of the following lines,
|
10
|
-
### if you need a database.
|
11
|
-
|
12
|
-
### Uncomment for DataMapper ORM
|
13
|
-
# use_orm :datamapper
|
14
|
-
|
15
|
-
### Uncomment for ActiveRecord ORM
|
16
|
-
# use_orm :activerecord
|
17
|
-
|
18
|
-
### Uncomment for Sequel ORM
|
19
|
-
# use_orm :sequel
|
20
|
-
|
21
|
-
|
22
|
-
### This defines which test framework the generators will use
|
23
|
-
### rspec is turned on by default
|
24
|
-
# use_test :test_unit
|
25
|
-
use_test :rspec
|
26
|
-
|
27
|
-
### Add your other dependencies here
|
28
|
-
|
29
|
-
# These are some examples of how you might specify dependencies.
|
30
|
-
#
|
31
|
-
# dependencies "RedCloth", "merb_helpers"
|
32
|
-
# OR
|
33
|
-
# dependency "RedCloth", "> 3.0"
|
34
|
-
# OR
|
35
|
-
# dependencies "RedCloth" => "> 3.0", "ruby-aes-cext" => "= 1.0"
|
36
|
-
|
37
|
-
Merb::BootLoader.after_app_loads do
|
38
|
-
### Add dependencies here that must load after the application loads:
|
39
|
-
|
40
|
-
# dependency "magic_admin" # this gem uses the app's model classes
|
41
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
puts "Loaded DEVELOPMENT Environment..."
|
@@ -1 +0,0 @@
|
|
1
|
-
puts "Loaded PRODUCTION Environment..."
|
@@ -1 +0,0 @@
|
|
1
|
-
puts "Loaded TEST Environment..."
|
@@ -1,82 +0,0 @@
|
|
1
|
-
---
|
2
|
-
# Hostname or IP address to bind to.
|
3
|
-
:host: 0.0.0.0
|
4
|
-
|
5
|
-
# Port merb runs on or starting port for merb cluster.
|
6
|
-
:port: "4000"
|
7
|
-
|
8
|
-
# Set if your app will be hosted in some dir other than the root
|
9
|
-
#:path_prefix: "/my_app"
|
10
|
-
|
11
|
-
# In development mode your app's files are reloaded whenever Merb detects a
|
12
|
-
# change. Templates are parsed each time and not cached. In production mode
|
13
|
-
# templates are cached, as well as all your classes
|
14
|
-
:environment: development
|
15
|
-
|
16
|
-
# Uncomment if you have more than one ORM or if you need to be specific about
|
17
|
-
# which memory store to use. Built-in options are: memory, cookie, or mem_cache
|
18
|
-
:session_store: memory
|
19
|
-
|
20
|
-
#:memory_session_ttl: 3600 # one hour
|
21
|
-
|
22
|
-
# A secret key is required when using the 'cookie' session store (default),
|
23
|
-
# change this value to something unique to your application and keep it private
|
24
|
-
:session_secret_key: /USERS/FGALIANA/WORK/RUBYFORGE/MOLE/SAMPLES/MERBAPP8301
|
25
|
-
|
26
|
-
# Uncomment to use the merb upload progress. The 'path match' will be treated as
|
27
|
-
# a regex for any URLs that should be considered for upload monitoring.
|
28
|
-
#:upload_path_match: /files/\d
|
29
|
-
#:upload_frequency: 3
|
30
|
-
|
31
|
-
# Uncomment to cache templates in dev mode. Templates are cached
|
32
|
-
# automatically in production mode.
|
33
|
-
#:cache_templates: true
|
34
|
-
|
35
|
-
# Uncomment to bundle assets in dev mode. Assets are automatically bundled in
|
36
|
-
# production mode.
|
37
|
-
#:bundle_assets: true
|
38
|
-
|
39
|
-
# this is true if you want mongrel to emulate the X-Sendfile header internally,
|
40
|
-
# false if you want it to fall thru to apache or whatever front end server you use.
|
41
|
-
# true by default
|
42
|
-
#:mongrel_x_sendfile: false
|
43
|
-
|
44
|
-
# Uncomment and set this if you want to run a drb server for upload progress
|
45
|
-
# or other drb services.
|
46
|
-
#:start_drb: true
|
47
|
-
#:drb_server_port: 32323
|
48
|
-
|
49
|
-
# If you want to protect some or all of your app with HTTP basic auth then
|
50
|
-
# uncomment the following and fill in your credentials you want it to use.
|
51
|
-
# You will then need to set a 'before' filter in a controller. For example:
|
52
|
-
# before :basic_authentication
|
53
|
-
#:basic_auth:
|
54
|
-
# :username: ezra
|
55
|
-
# :password: test
|
56
|
-
# :domain: localhost
|
57
|
-
|
58
|
-
# Uncomment this if you want merb to daemonize when you start it. You can also
|
59
|
-
# just use merb -d for the same effect. Don't uncomment this if you use the
|
60
|
-
# cluster option.
|
61
|
-
#:daemonize: true
|
62
|
-
|
63
|
-
# Uncomment this to set the number of members in your merb cluster. Don't set
|
64
|
-
# this and :daemonize: at the same time.
|
65
|
-
#:cluster: 3
|
66
|
-
|
67
|
-
# Uncomment this if you want to force merb to show full InternalServerError
|
68
|
-
# details, even when in production mode
|
69
|
-
#:exception_details: true
|
70
|
-
|
71
|
-
# It is often useful to use a differant layout from 'application' for errors
|
72
|
-
# set this to the layout template (or :none) that you want to use by default
|
73
|
-
#:exception_layout: :none
|
74
|
-
|
75
|
-
# You can override settings for specific environments by creating a yaml
|
76
|
-
# file for that environment in config/environments. For example, to
|
77
|
-
# change the configuration only for development create
|
78
|
-
# config/environments/development.yml
|
79
|
-
|
80
|
-
# If you don't intend to parse JSON, use ActiveSupport, or want to roll your own
|
81
|
-
# set this to true, to disable the loading of the JSON gem
|
82
|
-
# :disable_json_gem: true
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# Add your own ruby code here for app specific stuff. This file gets loaded
|
2
|
-
# after the framework is loaded.
|
3
|
-
puts "Started merb_init.rb ..."
|
4
|
-
|
5
|
-
# Your app's dependencies, including your database layer (if any) are defined
|
6
|
-
# in config/dependencies.rb
|
7
|
-
require File.join(Merb.root, 'config', 'dependencies')
|
8
|
-
|
9
|
-
# Here's where your controllers, helpers, and models, etc. get loaded. If you
|
10
|
-
# need to change the order of things, just move the call to 'load_application'
|
11
|
-
# around this file.
|
12
|
-
puts "Loading Application..."
|
13
|
-
Merb::BootLoader.load_application
|
14
|
-
|
15
|
-
# Load environment-specific configuration
|
16
|
-
environment_config = File.join(Merb.root, 'config', 'environments', Merb.environment + '.rb')
|
17
|
-
require environment_config if File.exist?(environment_config)
|
18
|
-
|
19
|
-
# Initialize the MOle and load the mole configuration file from config/mole_config.rb
|
20
|
-
require 'mole'
|
21
|
-
::Mole.initialize( :moleable => true,
|
22
|
-
:application => "MerbApp",
|
23
|
-
:perf_threshold => 2,
|
24
|
-
:mole_config => File.join( Merb.root, %w[config mole_config.rb]) )
|
25
|
-
::Mole.dump
|
26
|
-
::Mole.load_mole_configuration
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# Watch my_action calls on the Moled Controller
|
2
|
-
Moled.mole_after( :feature => :my_action ) { |context, feature, ret, block, *args|
|
3
|
-
::Mole::Moler.mole_it(
|
4
|
-
context ,
|
5
|
-
feature ,
|
6
|
-
context.session[:user] ,
|
7
|
-
:state => context.instance_variable_get( "@state" ),
|
8
|
-
:args => args.join( ", " ) )
|
9
|
-
}
|
10
|
-
|
11
|
-
# Use the Mole provided convenience util to pick up all actions on the Moled Controller Class
|
12
|
-
def all_actions() Mole::Utils::Frameworks.merb_actions( Moled ) end
|
13
|
-
|
14
|
-
# Watch action performance on the Moled Controller
|
15
|
-
Moled.mole_perf( :features => all_actions ) do |context, feature, elapsed_time, ret, block, *args|
|
16
|
-
::Mole::Moler.perf_it(
|
17
|
-
context ,
|
18
|
-
context.session[:user] ,
|
19
|
-
:controller => context.class.name ,
|
20
|
-
:feature => feature ,
|
21
|
-
:args => args ,
|
22
|
-
:elapsed_time => "%3.3f" % elapsed_time )
|
23
|
-
end
|
24
|
-
|
25
|
-
# Watch unchecked exceptions on the Moled Controller
|
26
|
-
Moled.mole_unchecked( :features => all_actions ) do |context, feature, boom, ret, block, *args|
|
27
|
-
::Mole::Moler.check_it(
|
28
|
-
context ,
|
29
|
-
context.session[:user] ,
|
30
|
-
:controller => context.class.name,
|
31
|
-
:feature => feature ,
|
32
|
-
:boom => boom )
|
33
|
-
end
|
@@ -1,38 +0,0 @@
|
|
1
|
-
# Merb::Router is the request routing mapper for the merb framework.
|
2
|
-
#
|
3
|
-
# You can route a specific URL to a controller / action pair:
|
4
|
-
#
|
5
|
-
# r.match("/contact").
|
6
|
-
# to(:controller => "info", :action => "contact")
|
7
|
-
#
|
8
|
-
# You can define placeholder parts of the url with the :symbol notation. These
|
9
|
-
# placeholders will be available in the params hash of your controllers. For example:
|
10
|
-
#
|
11
|
-
# r.match("/books/:book_id/:action").
|
12
|
-
# to(:controller => "books")
|
13
|
-
#
|
14
|
-
# Or, use placeholders in the "to" results for more complicated routing, e.g.:
|
15
|
-
#
|
16
|
-
# r.match("/admin/:module/:controller/:action/:id").
|
17
|
-
# to(:controller => ":module/:controller")
|
18
|
-
#
|
19
|
-
# You can also use regular expressions, deferred routes, and many other options.
|
20
|
-
# See merb/specs/merb/router.rb for a fairly complete usage sample.
|
21
|
-
|
22
|
-
puts "Compiling routes.."
|
23
|
-
Merb::Router.prepare do |r|
|
24
|
-
# RESTful routes
|
25
|
-
# r.resources :posts
|
26
|
-
|
27
|
-
r.match( '/' ).to( :controller => "moled", :action => 'index' )
|
28
|
-
r.match( '/moled/my_action/:id' ).to( :controller => "moled", :action => 'my_action' )
|
29
|
-
|
30
|
-
# This is the default route for /:controller/:action/:id
|
31
|
-
# This is fine for most cases. If you're heavily using resource-based
|
32
|
-
# routes, you may want to comment/remove this line to prevent
|
33
|
-
# clients from calling your create or destroy actions with a GET
|
34
|
-
r.default_routes
|
35
|
-
|
36
|
-
# Change this for your home page to be available at /
|
37
|
-
# r.match('/').to(:controller => 'whatever', :action =>'index')
|
38
|
-
end
|
File without changes
|
Binary file
|
@@ -1,119 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
font-family: Arial, Verdana, sans-serif;
|
3
|
-
font-size: 12px;
|
4
|
-
background-color: #fff;
|
5
|
-
}
|
6
|
-
* {
|
7
|
-
margin: 0px;
|
8
|
-
padding: 0px;
|
9
|
-
text-decoration: none;
|
10
|
-
}
|
11
|
-
html {
|
12
|
-
height: 100%;
|
13
|
-
margin-bottom: 1px;
|
14
|
-
}
|
15
|
-
#container {
|
16
|
-
width: 80%;
|
17
|
-
text-align: left;
|
18
|
-
background-color: #fff;
|
19
|
-
margin-right: auto;
|
20
|
-
margin-left: auto;
|
21
|
-
}
|
22
|
-
#header-container {
|
23
|
-
width: 100%;
|
24
|
-
padding-top: 15px;
|
25
|
-
}
|
26
|
-
#header-container h1, #header-container h2 {
|
27
|
-
margin-left: 6px;
|
28
|
-
margin-bottom: 6px;
|
29
|
-
}
|
30
|
-
.spacer {
|
31
|
-
width: 100%;
|
32
|
-
height: 15px;
|
33
|
-
}
|
34
|
-
hr {
|
35
|
-
border: 0px;
|
36
|
-
color: #ccc;
|
37
|
-
background-color: #cdcdcd;
|
38
|
-
height: 1px;
|
39
|
-
width: 100%;
|
40
|
-
text-align: left;
|
41
|
-
}
|
42
|
-
h1 {
|
43
|
-
font-size: 28px;
|
44
|
-
color: #c55;
|
45
|
-
background-color: #fff;
|
46
|
-
font-family: Arial, Verdana, sans-serif;
|
47
|
-
font-weight: 300;
|
48
|
-
}
|
49
|
-
h2 {
|
50
|
-
font-size: 15px;
|
51
|
-
color: #999;
|
52
|
-
font-family: Arial, Verdana, sans-serif;
|
53
|
-
font-weight: 300;
|
54
|
-
background-color: #fff;
|
55
|
-
}
|
56
|
-
h3 {
|
57
|
-
color: #4d9b12;
|
58
|
-
font-size: 15px;
|
59
|
-
text-align: left;
|
60
|
-
font-weight: 300;
|
61
|
-
padding: 5px;
|
62
|
-
margin-top: 5px;
|
63
|
-
}
|
64
|
-
|
65
|
-
#left-container {
|
66
|
-
float: left;
|
67
|
-
width: 250px;
|
68
|
-
background-color: #FFFFFF;
|
69
|
-
color: black;
|
70
|
-
}
|
71
|
-
|
72
|
-
#left-container h3 {
|
73
|
-
color: #c55;
|
74
|
-
}
|
75
|
-
|
76
|
-
#main-container {
|
77
|
-
margin: 5px 5px 5px 260px;
|
78
|
-
padding: 15px;
|
79
|
-
border-left: 1px solid silver;
|
80
|
-
min-height: 400px;
|
81
|
-
}
|
82
|
-
p {
|
83
|
-
color: #000;
|
84
|
-
background-color: #fff;
|
85
|
-
line-height: 20px;
|
86
|
-
padding: 5px;
|
87
|
-
}
|
88
|
-
a {
|
89
|
-
color: #4d9b12;
|
90
|
-
background-color: #fff;
|
91
|
-
text-decoration: none;
|
92
|
-
}
|
93
|
-
a:hover {
|
94
|
-
color: #4d9b12;
|
95
|
-
background-color: #fff;
|
96
|
-
text-decoration: underline;
|
97
|
-
}
|
98
|
-
#footer-container {
|
99
|
-
clear: both;
|
100
|
-
font-size: 12px;
|
101
|
-
font-family: Verdana, Arial, sans-serif;
|
102
|
-
}
|
103
|
-
.right {
|
104
|
-
float: right;
|
105
|
-
font-size: 100%;
|
106
|
-
margin-top: 5px;
|
107
|
-
color: #999;
|
108
|
-
background-color: #fff;
|
109
|
-
}
|
110
|
-
.left {
|
111
|
-
float: left;
|
112
|
-
font-size: 100%;
|
113
|
-
margin-top: 5px;
|
114
|
-
color: #999;
|
115
|
-
background-color: #fff;
|
116
|
-
}
|
117
|
-
#main-container ul {
|
118
|
-
margin-left: 3.0em;
|
119
|
-
}
|