diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..dc21753
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,39 @@
+source 'https://rubygems.org'
+
+gem 'rails', '3.2.13'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+gem 'sqlite3'
+
+gem 'json'
+
+# Gems used only for assets and not required
+# in production environments by default.
+group :assets do
+ gem 'sass-rails', '~> 3.2.3'
+ gem 'coffee-rails', '~> 3.2.1'
+
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
+ # gem 'therubyracer', :platforms => :ruby
+
+ gem 'uglifier', '>= 1.0.3'
+end
+
+gem 'jquery-rails'
+
+# To use ActiveModel has_secure_password
+# gem 'bcrypt-ruby', '~> 3.0.0'
+
+# To use Jbuilder templates for JSON
+# gem 'jbuilder'
+
+# Use unicorn as the app server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger
+# gem 'ruby-debug'
diff --git a/Gemfile.lock b/Gemfile.lock
new file mode 100644
index 0000000..1dac4d0
--- /dev/null
+++ b/Gemfile.lock
@@ -0,0 +1,112 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ actionmailer (3.2.13)
+ actionpack (= 3.2.13)
+ mail (~> 2.5.3)
+ actionpack (3.2.13)
+ activemodel (= 3.2.13)
+ activesupport (= 3.2.13)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.4)
+ rack (~> 1.4.5)
+ rack-cache (~> 1.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.2.1)
+ activemodel (3.2.13)
+ activesupport (= 3.2.13)
+ builder (~> 3.0.0)
+ activerecord (3.2.13)
+ activemodel (= 3.2.13)
+ activesupport (= 3.2.13)
+ arel (~> 3.0.2)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.13)
+ activemodel (= 3.2.13)
+ activesupport (= 3.2.13)
+ activesupport (3.2.13)
+ i18n (= 0.6.1)
+ multi_json (~> 1.0)
+ arel (3.0.2)
+ builder (3.0.4)
+ coffee-rails (3.2.2)
+ coffee-script (>= 2.2.0)
+ railties (~> 3.2.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.6.3)
+ erubis (2.7.0)
+ execjs (1.4.0)
+ multi_json (~> 1.0)
+ hike (1.2.3)
+ i18n (0.6.1)
+ journey (1.0.4)
+ jquery-rails (3.0.4)
+ railties (>= 3.0, < 5.0)
+ thor (>= 0.14, < 2.0)
+ json (1.8.0)
+ mail (2.5.4)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.23)
+ multi_json (1.7.7)
+ polyglot (0.3.3)
+ rack (1.4.5)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-ssl (1.3.3)
+ rack
+ rack-test (0.6.2)
+ rack (>= 1.0)
+ rails (3.2.13)
+ actionmailer (= 3.2.13)
+ actionpack (= 3.2.13)
+ activerecord (= 3.2.13)
+ activeresource (= 3.2.13)
+ activesupport (= 3.2.13)
+ bundler (~> 1.0)
+ railties (= 3.2.13)
+ railties (3.2.13)
+ actionpack (= 3.2.13)
+ activesupport (= 3.2.13)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (>= 0.14.6, < 2.0)
+ rake (10.1.0)
+ rdoc (3.12.2)
+ json (~> 1.4)
+ sass (3.2.9)
+ sass-rails (3.2.6)
+ railties (~> 3.2.0)
+ sass (>= 3.1.10)
+ tilt (~> 1.3)
+ sprockets (2.2.2)
+ hike (~> 1.2)
+ multi_json (~> 1.0)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.7)
+ thor (0.18.1)
+ tilt (1.4.1)
+ treetop (1.4.14)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.37)
+ uglifier (2.1.1)
+ execjs (>= 0.3.0)
+ multi_json (~> 1.0, >= 1.0.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-rails (~> 3.2.1)
+ jquery-rails
+ json
+ rails (= 3.2.13)
+ sass-rails (~> 3.2.3)
+ sqlite3
+ uglifier (>= 1.0.3)
diff --git a/README.rdoc b/README.rdoc
new file mode 100644
index 0000000..3e1c15c
--- /dev/null
+++ b/README.rdoc
@@ -0,0 +1,261 @@
+== Welcome to Rails
+
+Rails is a web-application framework that includes everything needed to create
+database-backed web applications according to the Model-View-Control pattern.
+
+This pattern splits the view (also called the presentation) into "dumb"
+templates that are primarily responsible for inserting pre-built data in between
+HTML tags. The model contains the "smart" domain objects (such as Account,
+Product, Person, Post) that holds all the business logic and knows how to
+persist themselves to a database. The controller handles the incoming requests
+(such as Save New Account, Update Product, Show Post) by manipulating the model
+and directing data to the view.
+
+In Rails, the model is handled by what's called an object-relational mapping
+layer entitled Active Record. This layer allows you to present the data from
+database rows as objects and embellish these data objects with business logic
+methods. You can read more about Active Record in
+link:files/vendor/rails/activerecord/README.html.
+
+The controller and view are handled by the Action Pack, which handles both
+layers by its two parts: Action View and Action Controller. These two layers
+are bundled in a single package due to their heavy interdependence. This is
+unlike the relationship between the Active Record and Action Pack that is much
+more separate. Each of these packages can be used independently outside of
+Rails. You can read more about Action Pack in
+link:files/vendor/rails/actionpack/README.html.
+
+
+== Getting Started
+
+1. At the command prompt, create a new Rails application:
+ rails new myapp (where myapp is the application name)
+
+2. Change directory to myapp and start the web server:
+ cd myapp; rails server (run with --help for options)
+
+3. Go to http://localhost:3000/ and you'll see:
+ "Welcome aboard: You're riding Ruby on Rails!"
+
+4. Follow the guidelines to start developing your application. You can find
+the following resources handy:
+
+* The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
+* Ruby on Rails Tutorial Book: http://www.railstutorial.org/
+
+
+== Debugging Rails
+
+Sometimes your application goes wrong. Fortunately there are a lot of tools that
+will help you debug it and get it back on the rails.
+
+First area to check is the application log files. Have "tail -f" commands
+running on the server.log and development.log. Rails will automatically display
+debugging and runtime information to these files. Debugging info will also be
+shown in the browser on requests from 127.0.0.1.
+
+You can also log your own messages directly into the log file from your code
+using the Ruby logger class from inside your controllers. Example:
+
+ class WeblogController < ActionController::Base
+ def destroy
+ @weblog = Weblog.find(params[:id])
+ @weblog.destroy
+ logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
+ end
+ end
+
+The result will be a message in your log file along the lines of:
+
+ Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1!
+
+More information on how to use the logger is at http://www.ruby-doc.org/core/
+
+Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are
+several books available online as well:
+
+* Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe)
+* Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
+
+These two books will bring you up to speed on the Ruby language and also on
+programming in general.
+
+
+== Debugger
+
+Debugger support is available through the debugger command when you start your
+Mongrel or WEBrick server with --debugger. This means that you can break out of
+execution at any point in the code, investigate and change the model, and then,
+resume execution! You need to install ruby-debug to run the server in debugging
+mode. With gems, use sudo gem install ruby-debug. Example:
+
+ class WeblogController < ActionController::Base
+ def index
+ @posts = Post.all
+ debugger
+ end
+ end
+
+So the controller will accept the action, run the first line, then present you
+with a IRB prompt in the server window. Here you can do things like:
+
+ >> @posts.inspect
+ => "[#nil, "body"=>nil, "id"=>"1"}>,
+ #"Rails", "body"=>"Only ten..", "id"=>"2"}>]"
+ >> @posts.first.title = "hello from a debugger"
+ => "hello from a debugger"
+
+...and even better, you can examine how your runtime objects actually work:
+
+ >> f = @posts.first
+ => #nil, "body"=>nil, "id"=>"1"}>
+ >> f.
+ Display all 152 possibilities? (y or n)
+
+Finally, when you're ready to resume execution, you can enter "cont".
+
+
+== Console
+
+The console is a Ruby shell, which allows you to interact with your
+application's domain model. Here you'll have all parts of the application
+configured, just like it is when the application is running. You can inspect
+domain models, change values, and save to the database. Starting the script
+without arguments will launch it in the development environment.
+
+To start the console, run rails console from the application
+directory.
+
+Options:
+
+* Passing the -s, --sandbox argument will rollback any modifications
+ made to the database.
+* Passing an environment name as an argument will load the corresponding
+ environment. Example: rails console production.
+
+To reload your controllers and models after launching the console run
+reload!
+
+More information about irb can be found at:
+link:http://www.rubycentral.org/pickaxe/irb.html
+
+
+== dbconsole
+
+You can go to the command line of your database directly through rails
+dbconsole. You would be connected to the database with the credentials
+defined in database.yml. Starting the script without arguments will connect you
+to the development database. Passing an argument will connect you to a different
+database, like rails dbconsole production. Currently works for MySQL,
+PostgreSQL and SQLite 3.
+
+== Description of Contents
+
+The default directory structure of a generated Ruby on Rails application:
+
+ |-- app
+ | |-- assets
+ | | |-- images
+ | | |-- javascripts
+ | | `-- stylesheets
+ | |-- controllers
+ | |-- helpers
+ | |-- mailers
+ | |-- models
+ | `-- views
+ | `-- layouts
+ |-- config
+ | |-- environments
+ | |-- initializers
+ | `-- locales
+ |-- db
+ |-- doc
+ |-- lib
+ | |-- assets
+ | `-- tasks
+ |-- log
+ |-- public
+ |-- script
+ |-- test
+ | |-- fixtures
+ | |-- functional
+ | |-- integration
+ | |-- performance
+ | `-- unit
+ |-- tmp
+ | `-- cache
+ | `-- assets
+ `-- vendor
+ |-- assets
+ | |-- javascripts
+ | `-- stylesheets
+ `-- plugins
+
+app
+ Holds all the code that's specific to this particular application.
+
+app/assets
+ Contains subdirectories for images, stylesheets, and JavaScript files.
+
+app/controllers
+ Holds controllers that should be named like weblogs_controller.rb for
+ automated URL mapping. All controllers should descend from
+ ApplicationController which itself descends from ActionController::Base.
+
+app/models
+ Holds models that should be named like post.rb. Models descend from
+ ActiveRecord::Base by default.
+
+app/views
+ Holds the template files for the view that should be named like
+ weblogs/index.html.erb for the WeblogsController#index action. All views use
+ eRuby syntax by default.
+
+app/views/layouts
+ Holds the template files for layouts to be used with views. This models the
+ common header/footer method of wrapping views. In your views, define a layout
+ using the layout :default and create a file named default.html.erb.
+ Inside default.html.erb, call <% yield %> to render the view using this
+ layout.
+
+app/helpers
+ Holds view helpers that should be named like weblogs_helper.rb. These are
+ generated for you automatically when using generators for controllers.
+ Helpers can be used to wrap functionality for your views into methods.
+
+config
+ Configuration files for the Rails environment, the routing map, the database,
+ and other dependencies.
+
+db
+ Contains the database schema in schema.rb. db/migrate contains all the
+ sequence of Migrations for your schema.
+
+doc
+ This directory is where your application documentation will be stored when
+ generated using rake doc:app
+
+lib
+ Application specific libraries. Basically, any kind of custom code that
+ doesn't belong under controllers, models, or helpers. This directory is in
+ the load path.
+
+public
+ The directory available for the web server. Also contains the dispatchers and the
+ default HTML files. This should be set as the DOCUMENT_ROOT of your web
+ server.
+
+script
+ Helper scripts for automation and generation.
+
+test
+ Unit and functional tests along with fixtures. When using the rails generate
+ command, template test files will be generated for you and placed in this
+ directory.
+
+vendor
+ External libraries that the application depends on. Also includes the plugins
+ subdirectory. If the app has frozen rails, those gems also go here, under
+ vendor/rails/. This directory is in the load path.
diff --git a/Rakefile b/Rakefile
index 3bb0e85..af2bf90 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,10 +1,7 @@
+#!/usr/bin/env rake
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
-require(File.join(File.dirname(__FILE__), 'config', 'boot'))
+require File.expand_path('../config/application', __FILE__)
-require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
-
-require 'tasks/rails'
+Wikiufc::Application.load_tasks
diff --git a/public/images/action/add.gif b/app/assets/images/action/add.gif
similarity index 100%
rename from public/images/action/add.gif
rename to app/assets/images/action/add.gif
diff --git a/public/images/action/arrow2_n.gif b/app/assets/images/action/arrow2_n.gif
similarity index 100%
rename from public/images/action/arrow2_n.gif
rename to app/assets/images/action/arrow2_n.gif
diff --git a/public/images/action/arrow2_s.gif b/app/assets/images/action/arrow2_s.gif
similarity index 100%
rename from public/images/action/arrow2_s.gif
rename to app/assets/images/action/arrow2_s.gif
diff --git a/public/images/action/back.gif b/app/assets/images/action/back.gif
similarity index 100%
rename from public/images/action/back.gif
rename to app/assets/images/action/back.gif
diff --git a/public/images/action/edit.gif b/app/assets/images/action/edit.gif
similarity index 100%
rename from public/images/action/edit.gif
rename to app/assets/images/action/edit.gif
diff --git a/public/images/action/subtract.gif b/app/assets/images/action/subtract.gif
similarity index 100%
rename from public/images/action/subtract.gif
rename to app/assets/images/action/subtract.gif
diff --git a/public/images/action/trash.gif b/app/assets/images/action/trash.gif
similarity index 100%
rename from public/images/action/trash.gif
rename to app/assets/images/action/trash.gif
diff --git a/public/images/action/undo.gif b/app/assets/images/action/undo.gif
similarity index 100%
rename from public/images/action/undo.gif
rename to app/assets/images/action/undo.gif
diff --git a/public/images/avatar_27.png b/app/assets/images/avatar_27.png
similarity index 100%
rename from public/images/avatar_27.png
rename to app/assets/images/avatar_27.png
diff --git a/public/images/avatar_80.png b/app/assets/images/avatar_80.png
similarity index 100%
rename from public/images/avatar_80.png
rename to app/assets/images/avatar_80.png
diff --git a/public/images/bg_body.png b/app/assets/images/bg_body.png
similarity index 100%
rename from public/images/bg_body.png
rename to app/assets/images/bg_body.png
diff --git a/public/images/bg_day.gif b/app/assets/images/bg_day.gif
similarity index 100%
rename from public/images/bg_day.gif
rename to app/assets/images/bg_day.gif
diff --git a/public/images/bg_menu.png b/app/assets/images/bg_menu.png
similarity index 100%
rename from public/images/bg_menu.png
rename to app/assets/images/bg_menu.png
diff --git a/public/images/bullet.gif b/app/assets/images/bullet.gif
similarity index 100%
rename from public/images/bullet.gif
rename to app/assets/images/bullet.gif
diff --git a/public/images/footer_bg.png b/app/assets/images/footer_bg.png
similarity index 100%
rename from public/images/footer_bg.png
rename to app/assets/images/footer_bg.png
diff --git a/public/images/header_bg.png b/app/assets/images/header_bg.png
similarity index 100%
rename from public/images/header_bg.png
rename to app/assets/images/header_bg.png
diff --git a/public/images/loading.gif b/app/assets/images/loading.gif
similarity index 100%
rename from public/images/loading.gif
rename to app/assets/images/loading.gif
diff --git a/public/images/rails.png b/app/assets/images/rails.png
similarity index 100%
rename from public/images/rails.png
rename to app/assets/images/rails.png
diff --git a/public/images/rascunho.png b/app/assets/images/rascunho.png
similarity index 100%
rename from public/images/rascunho.png
rename to app/assets/images/rascunho.png
diff --git a/public/images/site_bg.png b/app/assets/images/site_bg.png
similarity index 100%
rename from public/images/site_bg.png
rename to app/assets/images/site_bg.png
diff --git a/public/images/tango/accessories-calculator.png b/app/assets/images/tango/accessories-calculator.png
similarity index 100%
rename from public/images/tango/accessories-calculator.png
rename to app/assets/images/tango/accessories-calculator.png
diff --git a/public/images/tango/accessories-character-map.png b/app/assets/images/tango/accessories-character-map.png
similarity index 100%
rename from public/images/tango/accessories-character-map.png
rename to app/assets/images/tango/accessories-character-map.png
diff --git a/public/images/tango/accessories-text-editor.png b/app/assets/images/tango/accessories-text-editor.png
similarity index 100%
rename from public/images/tango/accessories-text-editor.png
rename to app/assets/images/tango/accessories-text-editor.png
diff --git a/public/images/tango/address-book-new.png b/app/assets/images/tango/address-book-new.png
similarity index 100%
rename from public/images/tango/address-book-new.png
rename to app/assets/images/tango/address-book-new.png
diff --git a/public/images/tango/application-x-executable.png b/app/assets/images/tango/application-x-executable.png
similarity index 100%
rename from public/images/tango/application-x-executable.png
rename to app/assets/images/tango/application-x-executable.png
diff --git a/public/images/tango/applications-accessories.png b/app/assets/images/tango/applications-accessories.png
similarity index 100%
rename from public/images/tango/applications-accessories.png
rename to app/assets/images/tango/applications-accessories.png
diff --git a/public/images/tango/applications-development.png b/app/assets/images/tango/applications-development.png
similarity index 100%
rename from public/images/tango/applications-development.png
rename to app/assets/images/tango/applications-development.png
diff --git a/public/images/tango/applications-games.png b/app/assets/images/tango/applications-games.png
similarity index 100%
rename from public/images/tango/applications-games.png
rename to app/assets/images/tango/applications-games.png
diff --git a/public/images/tango/applications-graphics.png b/app/assets/images/tango/applications-graphics.png
similarity index 100%
rename from public/images/tango/applications-graphics.png
rename to app/assets/images/tango/applications-graphics.png
diff --git a/public/images/tango/applications-internet.png b/app/assets/images/tango/applications-internet.png
similarity index 100%
rename from public/images/tango/applications-internet.png
rename to app/assets/images/tango/applications-internet.png
diff --git a/public/images/tango/applications-multimedia.png b/app/assets/images/tango/applications-multimedia.png
similarity index 100%
rename from public/images/tango/applications-multimedia.png
rename to app/assets/images/tango/applications-multimedia.png
diff --git a/public/images/tango/applications-office.png b/app/assets/images/tango/applications-office.png
similarity index 100%
rename from public/images/tango/applications-office.png
rename to app/assets/images/tango/applications-office.png
diff --git a/public/images/tango/applications-other.png b/app/assets/images/tango/applications-other.png
similarity index 100%
rename from public/images/tango/applications-other.png
rename to app/assets/images/tango/applications-other.png
diff --git a/public/images/tango/applications-system.png b/app/assets/images/tango/applications-system.png
similarity index 100%
rename from public/images/tango/applications-system.png
rename to app/assets/images/tango/applications-system.png
diff --git a/public/images/tango/appointment-new.png b/app/assets/images/tango/appointment-new.png
similarity index 100%
rename from public/images/tango/appointment-new.png
rename to app/assets/images/tango/appointment-new.png
diff --git a/public/images/tango/audio-card.png b/app/assets/images/tango/audio-card.png
similarity index 100%
rename from public/images/tango/audio-card.png
rename to app/assets/images/tango/audio-card.png
diff --git a/public/images/tango/audio-input-microphone.png b/app/assets/images/tango/audio-input-microphone.png
similarity index 100%
rename from public/images/tango/audio-input-microphone.png
rename to app/assets/images/tango/audio-input-microphone.png
diff --git a/public/images/tango/audio-volume-high.png b/app/assets/images/tango/audio-volume-high.png
similarity index 100%
rename from public/images/tango/audio-volume-high.png
rename to app/assets/images/tango/audio-volume-high.png
diff --git a/public/images/tango/audio-volume-low.png b/app/assets/images/tango/audio-volume-low.png
similarity index 100%
rename from public/images/tango/audio-volume-low.png
rename to app/assets/images/tango/audio-volume-low.png
diff --git a/public/images/tango/audio-volume-medium.png b/app/assets/images/tango/audio-volume-medium.png
similarity index 100%
rename from public/images/tango/audio-volume-medium.png
rename to app/assets/images/tango/audio-volume-medium.png
diff --git a/public/images/tango/audio-volume-muted.png b/app/assets/images/tango/audio-volume-muted.png
similarity index 100%
rename from public/images/tango/audio-volume-muted.png
rename to app/assets/images/tango/audio-volume-muted.png
diff --git a/public/images/tango/audio-x-generic.png b/app/assets/images/tango/audio-x-generic.png
similarity index 100%
rename from public/images/tango/audio-x-generic.png
rename to app/assets/images/tango/audio-x-generic.png
diff --git a/public/images/tango/battery-caution.png b/app/assets/images/tango/battery-caution.png
similarity index 100%
rename from public/images/tango/battery-caution.png
rename to app/assets/images/tango/battery-caution.png
diff --git a/public/images/tango/battery.png b/app/assets/images/tango/battery.png
similarity index 100%
rename from public/images/tango/battery.png
rename to app/assets/images/tango/battery.png
diff --git a/public/images/tango/camera-photo.png b/app/assets/images/tango/camera-photo.png
similarity index 100%
rename from public/images/tango/camera-photo.png
rename to app/assets/images/tango/camera-photo.png
diff --git a/public/images/tango/camera-video.png b/app/assets/images/tango/camera-video.png
similarity index 100%
rename from public/images/tango/camera-video.png
rename to app/assets/images/tango/camera-video.png
diff --git a/public/images/tango/computer.png b/app/assets/images/tango/computer.png
similarity index 100%
rename from public/images/tango/computer.png
rename to app/assets/images/tango/computer.png
diff --git a/public/images/tango/contact-new.png b/app/assets/images/tango/contact-new.png
similarity index 100%
rename from public/images/tango/contact-new.png
rename to app/assets/images/tango/contact-new.png
diff --git a/public/images/tango/document-new.png b/app/assets/images/tango/document-new.png
similarity index 100%
rename from public/images/tango/document-new.png
rename to app/assets/images/tango/document-new.png
diff --git a/public/images/tango/document-open.png b/app/assets/images/tango/document-open.png
similarity index 100%
rename from public/images/tango/document-open.png
rename to app/assets/images/tango/document-open.png
diff --git a/public/images/tango/document-print-preview.png b/app/assets/images/tango/document-print-preview.png
similarity index 100%
rename from public/images/tango/document-print-preview.png
rename to app/assets/images/tango/document-print-preview.png
diff --git a/public/images/tango/document-print.png b/app/assets/images/tango/document-print.png
similarity index 100%
rename from public/images/tango/document-print.png
rename to app/assets/images/tango/document-print.png
diff --git a/public/images/tango/document-properties.png b/app/assets/images/tango/document-properties.png
similarity index 100%
rename from public/images/tango/document-properties.png
rename to app/assets/images/tango/document-properties.png
diff --git a/public/images/tango/document-save-as.png b/app/assets/images/tango/document-save-as.png
similarity index 100%
rename from public/images/tango/document-save-as.png
rename to app/assets/images/tango/document-save-as.png
diff --git a/public/images/tango/document-save.png b/app/assets/images/tango/document-save.png
similarity index 100%
rename from public/images/tango/document-save.png
rename to app/assets/images/tango/document-save.png
diff --git a/public/images/tango/drive-harddisk.png b/app/assets/images/tango/drive-harddisk.png
similarity index 100%
rename from public/images/tango/drive-harddisk.png
rename to app/assets/images/tango/drive-harddisk.png
diff --git a/public/images/tango/drive-optical.png b/app/assets/images/tango/drive-optical.png
similarity index 100%
rename from public/images/tango/drive-optical.png
rename to app/assets/images/tango/drive-optical.png
diff --git a/public/images/tango/drive-removable-media.png b/app/assets/images/tango/drive-removable-media.png
similarity index 100%
rename from public/images/tango/drive-removable-media.png
rename to app/assets/images/tango/drive-removable-media.png
diff --git a/public/images/tango/edit-clear.png b/app/assets/images/tango/edit-clear.png
similarity index 100%
rename from public/images/tango/edit-clear.png
rename to app/assets/images/tango/edit-clear.png
diff --git a/public/images/tango/edit-copy.png b/app/assets/images/tango/edit-copy.png
similarity index 100%
rename from public/images/tango/edit-copy.png
rename to app/assets/images/tango/edit-copy.png
diff --git a/public/images/tango/edit-cut.png b/app/assets/images/tango/edit-cut.png
similarity index 100%
rename from public/images/tango/edit-cut.png
rename to app/assets/images/tango/edit-cut.png
diff --git a/public/images/tango/edit-delete.png b/app/assets/images/tango/edit-delete.png
similarity index 100%
rename from public/images/tango/edit-delete.png
rename to app/assets/images/tango/edit-delete.png
diff --git a/public/images/tango/edit-find-replace.png b/app/assets/images/tango/edit-find-replace.png
similarity index 100%
rename from public/images/tango/edit-find-replace.png
rename to app/assets/images/tango/edit-find-replace.png
diff --git a/public/images/tango/edit-find.png b/app/assets/images/tango/edit-find.png
similarity index 100%
rename from public/images/tango/edit-find.png
rename to app/assets/images/tango/edit-find.png
diff --git a/public/images/tango/edit-paste.png b/app/assets/images/tango/edit-paste.png
similarity index 100%
rename from public/images/tango/edit-paste.png
rename to app/assets/images/tango/edit-paste.png
diff --git a/public/images/tango/edit-redo.png b/app/assets/images/tango/edit-redo.png
similarity index 100%
rename from public/images/tango/edit-redo.png
rename to app/assets/images/tango/edit-redo.png
diff --git a/public/images/tango/edit-select-all.png b/app/assets/images/tango/edit-select-all.png
similarity index 100%
rename from public/images/tango/edit-select-all.png
rename to app/assets/images/tango/edit-select-all.png
diff --git a/public/images/tango/edit-undo.png b/app/assets/images/tango/edit-undo.png
similarity index 100%
rename from public/images/tango/edit-undo.png
rename to app/assets/images/tango/edit-undo.png
diff --git a/public/images/tango/emblem-favorite.png b/app/assets/images/tango/emblem-favorite.png
similarity index 100%
rename from public/images/tango/emblem-favorite.png
rename to app/assets/images/tango/emblem-favorite.png
diff --git a/public/images/tango/emblem-important.png b/app/assets/images/tango/emblem-important.png
similarity index 100%
rename from public/images/tango/emblem-important.png
rename to app/assets/images/tango/emblem-important.png
diff --git a/public/images/tango/emblem-photos.png b/app/assets/images/tango/emblem-photos.png
similarity index 100%
rename from public/images/tango/emblem-photos.png
rename to app/assets/images/tango/emblem-photos.png
diff --git a/public/images/tango/emblem-readonly.png b/app/assets/images/tango/emblem-readonly.png
similarity index 100%
rename from public/images/tango/emblem-readonly.png
rename to app/assets/images/tango/emblem-readonly.png
diff --git a/public/images/tango/emblem-symbolic-link.png b/app/assets/images/tango/emblem-symbolic-link.png
similarity index 100%
rename from public/images/tango/emblem-symbolic-link.png
rename to app/assets/images/tango/emblem-symbolic-link.png
diff --git a/public/images/tango/emblem-system.png b/app/assets/images/tango/emblem-system.png
similarity index 100%
rename from public/images/tango/emblem-system.png
rename to app/assets/images/tango/emblem-system.png
diff --git a/public/images/tango/emblem-unreadable.png b/app/assets/images/tango/emblem-unreadable.png
similarity index 100%
rename from public/images/tango/emblem-unreadable.png
rename to app/assets/images/tango/emblem-unreadable.png
diff --git a/public/images/tango/face-angel.png b/app/assets/images/tango/face-angel.png
similarity index 100%
rename from public/images/tango/face-angel.png
rename to app/assets/images/tango/face-angel.png
diff --git a/public/images/tango/face-crying.png b/app/assets/images/tango/face-crying.png
similarity index 100%
rename from public/images/tango/face-crying.png
rename to app/assets/images/tango/face-crying.png
diff --git a/public/images/tango/face-devilish.png b/app/assets/images/tango/face-devilish.png
similarity index 100%
rename from public/images/tango/face-devilish.png
rename to app/assets/images/tango/face-devilish.png
diff --git a/public/images/tango/face-kiss.png b/app/assets/images/tango/face-kiss.png
similarity index 100%
rename from public/images/tango/face-kiss.png
rename to app/assets/images/tango/face-kiss.png
diff --git a/public/images/tango/face-monkey.png b/app/assets/images/tango/face-monkey.png
similarity index 100%
rename from public/images/tango/face-monkey.png
rename to app/assets/images/tango/face-monkey.png
diff --git a/public/images/tango/face-plain.png b/app/assets/images/tango/face-plain.png
similarity index 100%
rename from public/images/tango/face-plain.png
rename to app/assets/images/tango/face-plain.png
diff --git a/public/images/tango/face-sad.png b/app/assets/images/tango/face-sad.png
similarity index 100%
rename from public/images/tango/face-sad.png
rename to app/assets/images/tango/face-sad.png
diff --git a/public/images/tango/face-smile-big.png b/app/assets/images/tango/face-smile-big.png
similarity index 100%
rename from public/images/tango/face-smile-big.png
rename to app/assets/images/tango/face-smile-big.png
diff --git a/public/images/tango/face-smile.png b/app/assets/images/tango/face-smile.png
similarity index 100%
rename from public/images/tango/face-smile.png
rename to app/assets/images/tango/face-smile.png
diff --git a/public/images/tango/face-surprise.png b/app/assets/images/tango/face-surprise.png
similarity index 100%
rename from public/images/tango/face-surprise.png
rename to app/assets/images/tango/face-surprise.png
diff --git a/public/images/tango/face-wink.png b/app/assets/images/tango/face-wink.png
similarity index 100%
rename from public/images/tango/face-wink.png
rename to app/assets/images/tango/face-wink.png
diff --git a/public/images/tango/folder-new.png b/app/assets/images/tango/folder-new.png
similarity index 100%
rename from public/images/tango/folder-new.png
rename to app/assets/images/tango/folder-new.png
diff --git a/public/images/tango/folder-remote.png b/app/assets/images/tango/folder-remote.png
similarity index 100%
rename from public/images/tango/folder-remote.png
rename to app/assets/images/tango/folder-remote.png
diff --git a/public/images/tango/folder.png b/app/assets/images/tango/folder.png
similarity index 100%
rename from public/images/tango/folder.png
rename to app/assets/images/tango/folder.png
diff --git a/public/images/tango/font-x-generic.png b/app/assets/images/tango/font-x-generic.png
similarity index 100%
rename from public/images/tango/font-x-generic.png
rename to app/assets/images/tango/font-x-generic.png
diff --git a/public/images/tango/format-indent-less.png b/app/assets/images/tango/format-indent-less.png
similarity index 100%
rename from public/images/tango/format-indent-less.png
rename to app/assets/images/tango/format-indent-less.png
diff --git a/public/images/tango/format-indent-more.png b/app/assets/images/tango/format-indent-more.png
similarity index 100%
rename from public/images/tango/format-indent-more.png
rename to app/assets/images/tango/format-indent-more.png
diff --git a/public/images/tango/format-justify-center.png b/app/assets/images/tango/format-justify-center.png
similarity index 100%
rename from public/images/tango/format-justify-center.png
rename to app/assets/images/tango/format-justify-center.png
diff --git a/public/images/tango/format-justify-fill.png b/app/assets/images/tango/format-justify-fill.png
similarity index 100%
rename from public/images/tango/format-justify-fill.png
rename to app/assets/images/tango/format-justify-fill.png
diff --git a/public/images/tango/format-justify-left.png b/app/assets/images/tango/format-justify-left.png
similarity index 100%
rename from public/images/tango/format-justify-left.png
rename to app/assets/images/tango/format-justify-left.png
diff --git a/public/images/tango/format-justify-right.png b/app/assets/images/tango/format-justify-right.png
similarity index 100%
rename from public/images/tango/format-justify-right.png
rename to app/assets/images/tango/format-justify-right.png
diff --git a/public/images/tango/format-text-bold.png b/app/assets/images/tango/format-text-bold.png
similarity index 100%
rename from public/images/tango/format-text-bold.png
rename to app/assets/images/tango/format-text-bold.png
diff --git a/public/images/tango/format-text-italic.png b/app/assets/images/tango/format-text-italic.png
similarity index 100%
rename from public/images/tango/format-text-italic.png
rename to app/assets/images/tango/format-text-italic.png
diff --git a/public/images/tango/format-text-strikethrough.png b/app/assets/images/tango/format-text-strikethrough.png
similarity index 100%
rename from public/images/tango/format-text-strikethrough.png
rename to app/assets/images/tango/format-text-strikethrough.png
diff --git a/public/images/tango/format-text-underline.png b/app/assets/images/tango/format-text-underline.png
similarity index 100%
rename from public/images/tango/format-text-underline.png
rename to app/assets/images/tango/format-text-underline.png
diff --git a/public/images/tango/go-bottom.png b/app/assets/images/tango/go-bottom.png
similarity index 100%
rename from public/images/tango/go-bottom.png
rename to app/assets/images/tango/go-bottom.png
diff --git a/public/images/tango/go-down.png b/app/assets/images/tango/go-down.png
similarity index 100%
rename from public/images/tango/go-down.png
rename to app/assets/images/tango/go-down.png
diff --git a/public/images/tango/go-first.png b/app/assets/images/tango/go-first.png
similarity index 100%
rename from public/images/tango/go-first.png
rename to app/assets/images/tango/go-first.png
diff --git a/public/images/tango/go-home.png b/app/assets/images/tango/go-home.png
similarity index 100%
rename from public/images/tango/go-home.png
rename to app/assets/images/tango/go-home.png
diff --git a/public/images/tango/go-jump.png b/app/assets/images/tango/go-jump.png
similarity index 100%
rename from public/images/tango/go-jump.png
rename to app/assets/images/tango/go-jump.png
diff --git a/public/images/tango/go-last.png b/app/assets/images/tango/go-last.png
similarity index 100%
rename from public/images/tango/go-last.png
rename to app/assets/images/tango/go-last.png
diff --git a/public/images/tango/go-next.png b/app/assets/images/tango/go-next.png
similarity index 100%
rename from public/images/tango/go-next.png
rename to app/assets/images/tango/go-next.png
diff --git a/public/images/tango/go-previous.png b/app/assets/images/tango/go-previous.png
similarity index 100%
rename from public/images/tango/go-previous.png
rename to app/assets/images/tango/go-previous.png
diff --git a/public/images/tango/go-top.png b/app/assets/images/tango/go-top.png
similarity index 100%
rename from public/images/tango/go-top.png
rename to app/assets/images/tango/go-top.png
diff --git a/public/images/tango/go-up.png b/app/assets/images/tango/go-up.png
similarity index 100%
rename from public/images/tango/go-up.png
rename to app/assets/images/tango/go-up.png
diff --git a/public/images/tango/help-browser.png b/app/assets/images/tango/help-browser.png
similarity index 100%
rename from public/images/tango/help-browser.png
rename to app/assets/images/tango/help-browser.png
diff --git a/public/images/tango/image-x-generic.png b/app/assets/images/tango/image-x-generic.png
similarity index 100%
rename from public/images/tango/image-x-generic.png
rename to app/assets/images/tango/image-x-generic.png
diff --git a/public/images/tango/input-gaming.png b/app/assets/images/tango/input-gaming.png
similarity index 100%
rename from public/images/tango/input-gaming.png
rename to app/assets/images/tango/input-gaming.png
diff --git a/public/images/tango/input-keyboard.png b/app/assets/images/tango/input-keyboard.png
similarity index 100%
rename from public/images/tango/input-keyboard.png
rename to app/assets/images/tango/input-keyboard.png
diff --git a/public/images/tango/input-mouse.png b/app/assets/images/tango/input-mouse.png
similarity index 100%
rename from public/images/tango/input-mouse.png
rename to app/assets/images/tango/input-mouse.png
diff --git a/public/images/tango/list-add.png b/app/assets/images/tango/list-add.png
similarity index 100%
rename from public/images/tango/list-add.png
rename to app/assets/images/tango/list-add.png
diff --git a/public/images/tango/list-remove.png b/app/assets/images/tango/list-remove.png
similarity index 100%
rename from public/images/tango/list-remove.png
rename to app/assets/images/tango/list-remove.png
diff --git a/public/images/tango/mail-forward.png b/app/assets/images/tango/mail-forward.png
similarity index 100%
rename from public/images/tango/mail-forward.png
rename to app/assets/images/tango/mail-forward.png
diff --git a/public/images/tango/mail-mark-junk.png b/app/assets/images/tango/mail-mark-junk.png
similarity index 100%
rename from public/images/tango/mail-mark-junk.png
rename to app/assets/images/tango/mail-mark-junk.png
diff --git a/public/images/tango/mail-message-new.png b/app/assets/images/tango/mail-message-new.png
similarity index 100%
rename from public/images/tango/mail-message-new.png
rename to app/assets/images/tango/mail-message-new.png
diff --git a/public/images/tango/mail-reply-all.png b/app/assets/images/tango/mail-reply-all.png
similarity index 100%
rename from public/images/tango/mail-reply-all.png
rename to app/assets/images/tango/mail-reply-all.png
diff --git a/public/images/tango/mail-reply-sender.png b/app/assets/images/tango/mail-reply-sender.png
similarity index 100%
rename from public/images/tango/mail-reply-sender.png
rename to app/assets/images/tango/mail-reply-sender.png
diff --git a/public/images/tango/mail-send-receive.png b/app/assets/images/tango/mail-send-receive.png
similarity index 100%
rename from public/images/tango/mail-send-receive.png
rename to app/assets/images/tango/mail-send-receive.png
diff --git a/public/images/tango/media-eject.png b/app/assets/images/tango/media-eject.png
similarity index 100%
rename from public/images/tango/media-eject.png
rename to app/assets/images/tango/media-eject.png
diff --git a/public/images/tango/media-flash.png b/app/assets/images/tango/media-flash.png
similarity index 100%
rename from public/images/tango/media-flash.png
rename to app/assets/images/tango/media-flash.png
diff --git a/public/images/tango/media-floppy.png b/app/assets/images/tango/media-floppy.png
similarity index 100%
rename from public/images/tango/media-floppy.png
rename to app/assets/images/tango/media-floppy.png
diff --git a/public/images/tango/media-optical.png b/app/assets/images/tango/media-optical.png
similarity index 100%
rename from public/images/tango/media-optical.png
rename to app/assets/images/tango/media-optical.png
diff --git a/public/images/tango/media-playback-pause.png b/app/assets/images/tango/media-playback-pause.png
similarity index 100%
rename from public/images/tango/media-playback-pause.png
rename to app/assets/images/tango/media-playback-pause.png
diff --git a/public/images/tango/media-playback-start.png b/app/assets/images/tango/media-playback-start.png
similarity index 100%
rename from public/images/tango/media-playback-start.png
rename to app/assets/images/tango/media-playback-start.png
diff --git a/public/images/tango/media-playback-stop.png b/app/assets/images/tango/media-playback-stop.png
similarity index 100%
rename from public/images/tango/media-playback-stop.png
rename to app/assets/images/tango/media-playback-stop.png
diff --git a/public/images/tango/media-record.png b/app/assets/images/tango/media-record.png
similarity index 100%
rename from public/images/tango/media-record.png
rename to app/assets/images/tango/media-record.png
diff --git a/public/images/tango/media-seek-backward.png b/app/assets/images/tango/media-seek-backward.png
similarity index 100%
rename from public/images/tango/media-seek-backward.png
rename to app/assets/images/tango/media-seek-backward.png
diff --git a/public/images/tango/media-seek-forward.png b/app/assets/images/tango/media-seek-forward.png
similarity index 100%
rename from public/images/tango/media-seek-forward.png
rename to app/assets/images/tango/media-seek-forward.png
diff --git a/public/images/tango/media-skip-backward.png b/app/assets/images/tango/media-skip-backward.png
similarity index 100%
rename from public/images/tango/media-skip-backward.png
rename to app/assets/images/tango/media-skip-backward.png
diff --git a/public/images/tango/media-skip-forward.png b/app/assets/images/tango/media-skip-forward.png
similarity index 100%
rename from public/images/tango/media-skip-forward.png
rename to app/assets/images/tango/media-skip-forward.png
diff --git a/public/images/tango/multimedia-player.png b/app/assets/images/tango/multimedia-player.png
similarity index 100%
rename from public/images/tango/multimedia-player.png
rename to app/assets/images/tango/multimedia-player.png
diff --git a/public/images/tango/network-server.png b/app/assets/images/tango/network-server.png
similarity index 100%
rename from public/images/tango/network-server.png
rename to app/assets/images/tango/network-server.png
diff --git a/public/images/tango/network-wired.png b/app/assets/images/tango/network-wired.png
similarity index 100%
rename from public/images/tango/network-wired.png
rename to app/assets/images/tango/network-wired.png
diff --git a/public/images/tango/network-wireless.png b/app/assets/images/tango/network-wireless.png
similarity index 100%
rename from public/images/tango/network-wireless.png
rename to app/assets/images/tango/network-wireless.png
diff --git a/public/images/tango/network-workgroup.png b/app/assets/images/tango/network-workgroup.png
similarity index 100%
rename from public/images/tango/network-workgroup.png
rename to app/assets/images/tango/network-workgroup.png
diff --git a/public/images/tango/package-x-generic.png b/app/assets/images/tango/package-x-generic.png
similarity index 100%
rename from public/images/tango/package-x-generic.png
rename to app/assets/images/tango/package-x-generic.png
diff --git a/public/images/tango/preferences-desktop-accessibility.png b/app/assets/images/tango/preferences-desktop-accessibility.png
similarity index 100%
rename from public/images/tango/preferences-desktop-accessibility.png
rename to app/assets/images/tango/preferences-desktop-accessibility.png
diff --git a/public/images/tango/preferences-desktop-font.png b/app/assets/images/tango/preferences-desktop-font.png
similarity index 100%
rename from public/images/tango/preferences-desktop-font.png
rename to app/assets/images/tango/preferences-desktop-font.png
diff --git a/public/images/tango/preferences-desktop-locale.png b/app/assets/images/tango/preferences-desktop-locale.png
similarity index 100%
rename from public/images/tango/preferences-desktop-locale.png
rename to app/assets/images/tango/preferences-desktop-locale.png
diff --git a/public/images/tango/preferences-desktop-peripherals.png b/app/assets/images/tango/preferences-desktop-peripherals.png
similarity index 100%
rename from public/images/tango/preferences-desktop-peripherals.png
rename to app/assets/images/tango/preferences-desktop-peripherals.png
diff --git a/public/images/tango/preferences-desktop-screensaver.png b/app/assets/images/tango/preferences-desktop-screensaver.png
similarity index 100%
rename from public/images/tango/preferences-desktop-screensaver.png
rename to app/assets/images/tango/preferences-desktop-screensaver.png
diff --git a/public/images/tango/preferences-desktop-theme.png b/app/assets/images/tango/preferences-desktop-theme.png
similarity index 100%
rename from public/images/tango/preferences-desktop-theme.png
rename to app/assets/images/tango/preferences-desktop-theme.png
diff --git a/public/images/tango/preferences-desktop-wallpaper.png b/app/assets/images/tango/preferences-desktop-wallpaper.png
similarity index 100%
rename from public/images/tango/preferences-desktop-wallpaper.png
rename to app/assets/images/tango/preferences-desktop-wallpaper.png
diff --git a/public/images/tango/preferences-desktop.png b/app/assets/images/tango/preferences-desktop.png
similarity index 100%
rename from public/images/tango/preferences-desktop.png
rename to app/assets/images/tango/preferences-desktop.png
diff --git a/public/images/tango/preferences-system.png b/app/assets/images/tango/preferences-system.png
similarity index 100%
rename from public/images/tango/preferences-system.png
rename to app/assets/images/tango/preferences-system.png
diff --git a/public/images/tango/printer.png b/app/assets/images/tango/printer.png
similarity index 100%
rename from public/images/tango/printer.png
rename to app/assets/images/tango/printer.png
diff --git a/public/images/tango/process-stop.png b/app/assets/images/tango/process-stop.png
similarity index 100%
rename from public/images/tango/process-stop.png
rename to app/assets/images/tango/process-stop.png
diff --git a/public/images/tango/process-working.png b/app/assets/images/tango/process-working.png
similarity index 100%
rename from public/images/tango/process-working.png
rename to app/assets/images/tango/process-working.png
diff --git a/public/images/tango/rss.png b/app/assets/images/tango/rss.png
similarity index 100%
rename from public/images/tango/rss.png
rename to app/assets/images/tango/rss.png
diff --git a/public/images/tango/start-here.png b/app/assets/images/tango/start-here.png
similarity index 100%
rename from public/images/tango/start-here.png
rename to app/assets/images/tango/start-here.png
diff --git a/public/images/tango/system-file-manager.png b/app/assets/images/tango/system-file-manager.png
similarity index 100%
rename from public/images/tango/system-file-manager.png
rename to app/assets/images/tango/system-file-manager.png
diff --git a/public/images/tango/system-lock-screen.png b/app/assets/images/tango/system-lock-screen.png
similarity index 100%
rename from public/images/tango/system-lock-screen.png
rename to app/assets/images/tango/system-lock-screen.png
diff --git a/public/images/tango/system-log-out.png b/app/assets/images/tango/system-log-out.png
similarity index 100%
rename from public/images/tango/system-log-out.png
rename to app/assets/images/tango/system-log-out.png
diff --git a/public/images/tango/system-search.png b/app/assets/images/tango/system-search.png
similarity index 100%
rename from public/images/tango/system-search.png
rename to app/assets/images/tango/system-search.png
diff --git a/public/images/tango/system-software-update.png b/app/assets/images/tango/system-software-update.png
similarity index 100%
rename from public/images/tango/system-software-update.png
rename to app/assets/images/tango/system-software-update.png
diff --git a/public/images/tango/text-html.png b/app/assets/images/tango/text-html.png
similarity index 100%
rename from public/images/tango/text-html.png
rename to app/assets/images/tango/text-html.png
diff --git a/public/images/tango/text-x-generic-template.png b/app/assets/images/tango/text-x-generic-template.png
similarity index 100%
rename from public/images/tango/text-x-generic-template.png
rename to app/assets/images/tango/text-x-generic-template.png
diff --git a/public/images/tango/text-x-generic.png b/app/assets/images/tango/text-x-generic.png
similarity index 100%
rename from public/images/tango/text-x-generic.png
rename to app/assets/images/tango/text-x-generic.png
diff --git a/public/images/tango/text-x-script.png b/app/assets/images/tango/text-x-script.png
similarity index 100%
rename from public/images/tango/text-x-script.png
rename to app/assets/images/tango/text-x-script.png
diff --git a/public/images/tango/user-desktop.png b/app/assets/images/tango/user-desktop.png
similarity index 100%
rename from public/images/tango/user-desktop.png
rename to app/assets/images/tango/user-desktop.png
diff --git a/public/images/tango/user-home.png b/app/assets/images/tango/user-home.png
similarity index 100%
rename from public/images/tango/user-home.png
rename to app/assets/images/tango/user-home.png
diff --git a/public/images/tango/user-trash.png b/app/assets/images/tango/user-trash.png
similarity index 100%
rename from public/images/tango/user-trash.png
rename to app/assets/images/tango/user-trash.png
diff --git a/public/images/tango/utilities-system-monitor.png b/app/assets/images/tango/utilities-system-monitor.png
similarity index 100%
rename from public/images/tango/utilities-system-monitor.png
rename to app/assets/images/tango/utilities-system-monitor.png
diff --git a/public/images/tango/utilities-terminal.png b/app/assets/images/tango/utilities-terminal.png
similarity index 100%
rename from public/images/tango/utilities-terminal.png
rename to app/assets/images/tango/utilities-terminal.png
diff --git a/public/images/tango/video-display.png b/app/assets/images/tango/video-display.png
similarity index 100%
rename from public/images/tango/video-display.png
rename to app/assets/images/tango/video-display.png
diff --git a/public/images/tango/video-x-generic.png b/app/assets/images/tango/video-x-generic.png
similarity index 100%
rename from public/images/tango/video-x-generic.png
rename to app/assets/images/tango/video-x-generic.png
diff --git a/public/images/tango/view-fullscreen.png b/app/assets/images/tango/view-fullscreen.png
similarity index 100%
rename from public/images/tango/view-fullscreen.png
rename to app/assets/images/tango/view-fullscreen.png
diff --git a/public/images/tango/view-refresh.png b/app/assets/images/tango/view-refresh.png
similarity index 100%
rename from public/images/tango/view-refresh.png
rename to app/assets/images/tango/view-refresh.png
diff --git a/public/images/tango/window-new.png b/app/assets/images/tango/window-new.png
similarity index 100%
rename from public/images/tango/window-new.png
rename to app/assets/images/tango/window-new.png
diff --git a/public/images/tango/x-office-address-book.png b/app/assets/images/tango/x-office-address-book.png
similarity index 100%
rename from public/images/tango/x-office-address-book.png
rename to app/assets/images/tango/x-office-address-book.png
diff --git a/public/images/tango/x-office-calendar.png b/app/assets/images/tango/x-office-calendar.png
similarity index 100%
rename from public/images/tango/x-office-calendar.png
rename to app/assets/images/tango/x-office-calendar.png
diff --git a/public/images/tango/x-office-document.png b/app/assets/images/tango/x-office-document.png
similarity index 100%
rename from public/images/tango/x-office-document.png
rename to app/assets/images/tango/x-office-document.png
diff --git a/public/images/tango/x-office-presentation.png b/app/assets/images/tango/x-office-presentation.png
similarity index 100%
rename from public/images/tango/x-office-presentation.png
rename to app/assets/images/tango/x-office-presentation.png
diff --git a/public/images/tango/x-office-spreadsheet.png b/app/assets/images/tango/x-office-spreadsheet.png
similarity index 100%
rename from public/images/tango/x-office-spreadsheet.png
rename to app/assets/images/tango/x-office-spreadsheet.png
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js
new file mode 100644
index 0000000..fe45776
--- /dev/null
+++ b/app/assets/javascripts/application.js
@@ -0,0 +1,2 @@
+// Place your application-specific JavaScript functions and classes here
+// This file is automatically included by javascript_include_tag :defaults
diff --git a/public/javascripts/color.js b/app/assets/javascripts/color.js
similarity index 100%
rename from public/javascripts/color.js
rename to app/assets/javascripts/color.js
diff --git a/public/javascripts/controls.js b/app/assets/javascripts/controls.js
similarity index 100%
rename from public/javascripts/controls.js
rename to app/assets/javascripts/controls.js
diff --git a/public/javascripts/dragdrop.js b/app/assets/javascripts/dragdrop.js
similarity index 100%
rename from public/javascripts/dragdrop.js
rename to app/assets/javascripts/dragdrop.js
diff --git a/public/javascripts/effects.js b/app/assets/javascripts/effects.js
similarity index 100%
rename from public/javascripts/effects.js
rename to app/assets/javascripts/effects.js
diff --git a/public/javascripts/events.js b/app/assets/javascripts/events.js
similarity index 100%
rename from public/javascripts/events.js
rename to app/assets/javascripts/events.js
diff --git a/public/javascripts/history.js b/app/assets/javascripts/history.js
similarity index 100%
rename from public/javascripts/history.js
rename to app/assets/javascripts/history.js
diff --git a/public/javascripts/lib/builder.js b/app/assets/javascripts/lib/builder.js
similarity index 100%
rename from public/javascripts/lib/builder.js
rename to app/assets/javascripts/lib/builder.js
diff --git a/public/javascripts/lib/controls.js b/app/assets/javascripts/lib/controls.js
similarity index 100%
rename from public/javascripts/lib/controls.js
rename to app/assets/javascripts/lib/controls.js
diff --git a/public/javascripts/lib/dragdrop.js b/app/assets/javascripts/lib/dragdrop.js
similarity index 100%
rename from public/javascripts/lib/dragdrop.js
rename to app/assets/javascripts/lib/dragdrop.js
diff --git a/public/javascripts/lib/effects.js b/app/assets/javascripts/lib/effects.js
similarity index 100%
rename from public/javascripts/lib/effects.js
rename to app/assets/javascripts/lib/effects.js
diff --git a/public/javascripts/lib/event-selectors.js b/app/assets/javascripts/lib/event-selectors.js
similarity index 100%
rename from public/javascripts/lib/event-selectors.js
rename to app/assets/javascripts/lib/event-selectors.js
diff --git a/public/javascripts/lib/prototype.js b/app/assets/javascripts/lib/prototype.js
similarity index 100%
rename from public/javascripts/lib/prototype.js
rename to app/assets/javascripts/lib/prototype.js
diff --git a/public/javascripts/lib/scriptaculous.js b/app/assets/javascripts/lib/scriptaculous.js
similarity index 100%
rename from public/javascripts/lib/scriptaculous.js
rename to app/assets/javascripts/lib/scriptaculous.js
diff --git a/public/javascripts/lib/slider.js b/app/assets/javascripts/lib/slider.js
similarity index 100%
rename from public/javascripts/lib/slider.js
rename to app/assets/javascripts/lib/slider.js
diff --git a/public/javascripts/lib/sound.js b/app/assets/javascripts/lib/sound.js
similarity index 100%
rename from public/javascripts/lib/sound.js
rename to app/assets/javascripts/lib/sound.js
diff --git a/public/javascripts/lib/unittest.js b/app/assets/javascripts/lib/unittest.js
similarity index 100%
rename from public/javascripts/lib/unittest.js
rename to app/assets/javascripts/lib/unittest.js
diff --git a/public/javascripts/news.js b/app/assets/javascripts/news.js
similarity index 100%
rename from public/javascripts/news.js
rename to app/assets/javascripts/news.js
diff --git a/public/javascripts/prototype.js b/app/assets/javascripts/prototype.js
similarity index 100%
rename from public/javascripts/prototype.js
rename to app/assets/javascripts/prototype.js
diff --git a/public/javascripts/wiki.js b/app/assets/javascripts/wiki.js
similarity index 100%
rename from public/javascripts/wiki.js
rename to app/assets/javascripts/wiki.js
diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css
new file mode 100644
index 0000000..3192ec8
--- /dev/null
+++ b/app/assets/stylesheets/application.css
@@ -0,0 +1,13 @@
+/*
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
+ * listed below.
+ *
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
+ *
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
+ * compiled file, but it's generally better to create a new file per style scope.
+ *
+ *= require_self
+ *= require_tree .
+ */
diff --git a/public/stylesheets/default.css b/app/assets/stylesheets/default.css
similarity index 100%
rename from public/stylesheets/default.css
rename to app/assets/stylesheets/default.css
diff --git a/public/stylesheets/ie/ie.css b/app/assets/stylesheets/ie/ie.css
similarity index 100%
rename from public/stylesheets/ie/ie.css
rename to app/assets/stylesheets/ie/ie.css
diff --git a/public/stylesheets/ie/ie6.css b/app/assets/stylesheets/ie/ie6.css
similarity index 100%
rename from public/stylesheets/ie/ie6.css
rename to app/assets/stylesheets/ie/ie6.css
diff --git a/public/stylesheets/scaffold.css b/app/assets/stylesheets/scaffold.css
similarity index 100%
rename from public/stylesheets/scaffold.css
rename to app/assets/stylesheets/scaffold.css
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index e6bdaa5..aa2be18 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -18,15 +18,14 @@
require 'yaml'
class ApplicationController < ActionController::Base
+ helper :all
+ protect_from_forgery
+ filter_parameter_logging :password
include AuthenticationSystem
- helper :all
- helper :all
before_filter :startup
#before_filter :set_timezone
-
- # Força o login para algumas áreas do sistema
before_filter :require_login, :only => [ :edit, :new, :create, :update, :delete, :destroy ]
protected
diff --git a/config.ru b/config.ru
new file mode 100644
index 0000000..3ac728f
--- /dev/null
+++ b/config.ru
@@ -0,0 +1,4 @@
+# This file is used by Rack-based servers to start the application.
+
+require ::File.expand_path('../config/environment', __FILE__)
+run Wikiufc::Application
diff --git a/config/application.rb b/config/application.rb
index 6e1d962..7d066f7 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -1,56 +1,62 @@
-# Geral
-App.language = "pt-br"
-App.title = "Wiki UFC"
-App.webmaster_email = "webmaster@wikiufc.gelsol.org"
-
-App.default_host = "localhost:3000"
-App.base_path = ""
-
-App.current_period = "2009.2"
-
-# Limites
-App.max_upload_file_size = 5.megabytes
-
-# Forum
-#App.forum_uri = "http://127.0.0.1:3001/"
-
-# Tema
-App.default_color = 0
-App.default_avatar = "http://#{App.default_host}#{App.default_path}/images/avatar"
-App.color_schemes = [
- # Default
- [ "#037", "#069", "#455", "#778" ],
-
- # Legado
- [ "#000", "#069", "#455", "#455" ],
- [ "#000", "#690", "#444", "#666" ],
-
- # Mono
-
- [ "#900", "#c00", "#444", "#888" ],
-
- # Aqua
- [ "#7b7", "#455", "#899", "#abb" ],
- [ "#005B9A", "#455", "#899", "#abb" ],
- [ "#8D009A", "#455", "#899", "#abb" ],
- [ "#9A000D", "#455", "#899", "#abb" ],
- [ "#5A9A00", "#455", "#899", "#abb" ],
-
- # Complementar
- #[ "#037", "#c60", "#457", "#568" ],
- #[ "#070", "#c00", "#474", "#585" ],
-
- # Pink
- [ "#d18", "#d18", "#457", "#668" ],
- #[ "#609", "#455", "#547", "#658" ],
-
- # Sand
- [ "#900", "#663", "#888", "#cc9" ],
- [ "#036", "#663", "#888", "#cc9" ],
- [ "#680", "#663", "#888", "#cc9" ]
-]
-
-
-# Templates
-App.inital_wiki_pages = ['Ementa', 'Notas de Aula']
-App.initial_wiki_page_content = "Página em branco."
+require File.expand_path('../boot', __FILE__)
+
+require 'rails/all'
+
+if defined?(Bundler)
+ # If you precompile assets before deploying to production, use this line
+ Bundler.require(*Rails.groups(:assets => %w(development test)))
+ # If you want your assets lazily compiled in production, use this line
+ # Bundler.require(:default, :assets, Rails.env)
+end
+
+module Wikiufc
+ class Application < Rails::Application
+ # Settings in config/environments/* take precedence over those specified here.
+ # Application configuration should go into files in config/initializers
+ # -- all .rb files in that directory are automatically loaded.
+
+ # Custom directories with classes and modules you want to be autoloadable.
+ # config.autoload_paths += %W(#{config.root}/extras)
+
+ # Only load the plugins named here, in the order given (default is alphabetical).
+ # :all can be used as a placeholder for all plugins not explicitly named.
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
+
+ # Activate observers that should always be running.
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
+
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
+ # config.time_zone = 'Central Time (US & Canada)'
+
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
+ # config.i18n.default_locale = :de
+
+ # Configure the default encoding used in templates for Ruby 1.9.
+ config.encoding = "utf-8"
+
+ # Configure sensitive parameters which will be filtered from the log file.
+ config.filter_parameters += [:password]
+
+ # Enable escaping HTML in JSON.
+ config.active_support.escape_html_entities_in_json = true
+
+ # Use SQL instead of Active Record's schema dumper when creating the database.
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
+ # like if you have constraints or database-specific column types
+ # config.active_record.schema_format = :sql
+
+ # Enforce whitelist mode for mass assignment.
+ # This will create an empty whitelist of attributes available for mass-assignment for all models
+ # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
+ # parameters by using an attr_accessible or attr_protected declaration.
+ config.active_record.whitelist_attributes = true
+
+ # Enable the asset pipeline
+ config.assets.enabled = true
+
+ # Version of your assets, change this if you want to expire all your assets
+ config.assets.version = '1.0'
+ end
+end
diff --git a/config/boot.rb b/config/boot.rb
index 0a51688..4489e58 100644
--- a/config/boot.rb
+++ b/config/boot.rb
@@ -1,109 +1,6 @@
-# Don't change this file!
-# Configure your app in config/environment.rb and config/environments/*.rb
+require 'rubygems'
-RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
+# Set up gems listed in the Gemfile.
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
-module Rails
- class << self
- def boot!
- unless booted?
- preinitialize
- pick_boot.run
- end
- end
-
- def booted?
- defined? Rails::Initializer
- end
-
- def pick_boot
- (vendor_rails? ? VendorBoot : GemBoot).new
- end
-
- def vendor_rails?
- File.exist?("#{RAILS_ROOT}/vendor/rails")
- end
-
- def preinitialize
- load(preinitializer_path) if File.exist?(preinitializer_path)
- end
-
- def preinitializer_path
- "#{RAILS_ROOT}/config/preinitializer.rb"
- end
- end
-
- class Boot
- def run
- load_initializer
- Rails::Initializer.run(:set_load_path)
- end
- end
-
- class VendorBoot < Boot
- def load_initializer
- require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
- Rails::Initializer.run(:install_gem_spec_stubs)
- end
- end
-
- class GemBoot < Boot
- def load_initializer
- self.class.load_rubygems
- load_rails_gem
- require 'initializer'
- end
-
- def load_rails_gem
- if version = self.class.gem_version
- gem 'rails', version
- else
- gem 'rails'
- end
- rescue Gem::LoadError => load_error
- $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
- exit 1
- end
-
- class << self
- def rubygems_version
- Gem::RubyGemsVersion rescue nil
- end
-
- def gem_version
- if defined? RAILS_GEM_VERSION
- RAILS_GEM_VERSION
- elsif ENV.include?('RAILS_GEM_VERSION')
- ENV['RAILS_GEM_VERSION']
- else
- parse_gem_version(read_environment_rb)
- end
- end
-
- def load_rubygems
- require 'rubygems'
- min_version = '1.3.1'
- unless rubygems_version >= min_version
- $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
- exit 1
- end
-
- rescue LoadError
- $stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org)
- exit 1
- end
-
- def parse_gem_version(text)
- $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
- end
-
- private
- def read_environment_rb
- File.read("#{RAILS_ROOT}/config/environment.rb")
- end
- end
- end
-end
-
-# All that for this:
-Rails.boot!
+require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
diff --git a/config/environment.rb b/config/environment.rb
index ad89a79..031f65a 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -1,85 +1,5 @@
-# Be sure to restart your server when you modify this file
+# Load the rails application
+require File.expand_path('../application', __FILE__)
-# Uncomment below to force Rails into production mode when
-# you don't control web/app server and can't set it the proper way
-# ENV['RAILS_ENV'] ||= 'production'
-
-# Specifies gem version of Rails to use when vendor/rails is not present
-RAILS_GEM_VERSION = '2.3.18' unless defined? RAILS_GEM_VERSION
-
-# Bootstrap the Rails environment, frameworks, and default configuration
-require File.join(File.dirname(__FILE__), 'boot')
-
-Rails::Initializer.run do |config|
-
- config.to_prepare do
- load "#{RAILS_ROOT}/app/models/message.rb"
- load "#{RAILS_ROOT}/app/models/log_entry.rb"
- end
-
- # Settings in config/environments/* take precedence over those specified here.
- # Application configuration should go into files in config/initializers
- # -- all .rb files in that directory are automatically loaded.
- # See Rails::Configuration for more options.
-
- # Skip frameworks you're not going to use (only works if using vendor/rails).
- # To use Rails without a database, you must remove the Active Record framework
- # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
-
- # Only load the plugins named here, in the order given. By default, all plugins
- # in vendor/plugins are loaded in alphabetical order.
- # :all can be used as a placeholder for all plugins not explicitly named
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
-
- # Add additional load paths for your own custom dirs
- # config.load_paths += %W( #{RAILS_ROOT}/extras )
-
- # Force all environments to use the same logger level
- # (by default production uses :info, the others :debug)
- # config.log_level = :debug
-
- # Your secret key for verifying cookie session data integrity.
- # If you change this key, all old sessions will become invalid!
- # Make sure the secret is at least 30 characters and all random,
- # no regular words or you'll be exposed to dictionary attacks.
- config.action_controller.session = {
- :key => '_wikiufc_session_id',
- :secret => '9194c999d4c15148e1fe79e5afe2b77f9f0878f8f8391b72ff62d2ee7243d21d809096b5171be863f56701aa21efbc487d725b3660e86d0022968c19797f6f75'
- }
-
- # Use the database for sessions instead of the cookie-based default,
- # which shouldn't be used to store highly confidential information
- # (create the session table with 'rake db:sessions:create')
- config.action_controller.session_store = :active_record_store
-
- # Use SQL instead of Active Record's schema dumper when creating the test database.
- # This is necessary if your schema can't be completely dumped by the schema dumper,
- # like if you have constraints or database-specific column types
- # config.active_record.schema_format = :sql
-
- # Activate observers that should always be running
- # config.active_record.observers = :cacher, :garbage_collector
-
- # Make Active Record use UTC-base instead of local time
- config.active_record.default_timezone = :utc
-
- config.action_view.sanitized_allowed_tags = %W(p h1 h2 h3 h4 h5 h6 dl dt ol
- ul li address blockquote del div hr ins pre a abbr acronym dfn em strong
- code samp kbd var b i big small tt span br bdo cite del ins q sub sup
- img map table tr td th colgroup col caption thead tbody tfoot)
-
- config.action_view.sanitized_allowed_attributes = %W(align alt border
- cellpadding cellspacing cols colspan coords height href longdesc name
- noresize nowrap rel rows rowspan rules scope shape size span src start
- style summary title type usemap valign width)
-
- config.time_zone = 'America/Fortaleza'
-
- config.gem "bluecloth"
- config.gem "haml"
- config.gem "hpricot"
- config.gem "icalendar"
- config.gem "will_paginate"
- config.gem "calendar_helper"
- config.gem "shoulda"
-end
+# Initialize the rails application
+Wikiufc::Application.initialize!
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 53ffc28..f3b32d1 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -1,23 +1,37 @@
-# Settings specified here will take precedence over those in config/environment.rb
+Wikiufc::Application.configure do
+ # Settings specified here will take precedence over those in config/application.rb
-# In the development environment your application's code is reloaded on
-# every request. This slows down response time but is perfect for development
-# since you don't have to restart the webserver when you make code changes.
-config.cache_classes = false
+ # In the development environment your application's code is reloaded on
+ # every request. This slows down response time but is perfect for development
+ # since you don't have to restart the web server when you make code changes.
+ config.cache_classes = false
-# Log error messages when you accidentally call methods on nil.
-config.whiny_nils = true
+ # Log error messages when you accidentally call methods on nil.
+ config.whiny_nils = true
-# Enable the breakpoint server that script/breakpointer connects to
-# config.breakpoint_server = true
+ # Show full error reports and disable caching
+ config.consider_all_requests_local = true
+ config.action_controller.perform_caching = false
-# Show full error reports and disable caching
-config.action_controller.consider_all_requests_local = true
-config.action_controller.perform_caching = false
-#config.action_view.cache_template_extensions = false
-config.action_view.debug_rjs = true
+ # Don't care if the mailer can't send
+ config.action_mailer.raise_delivery_errors = false
-# Don't care if the mailer can't send
-config.action_mailer.raise_delivery_errors = false
+ # Print deprecation notices to the Rails logger
+ config.active_support.deprecation = :log
-config.gem "brI18n"
+ # Only use best-standards-support built into browsers
+ config.action_dispatch.best_standards_support = :builtin
+
+ # Raise exception on mass assignment protection for Active Record models
+ config.active_record.mass_assignment_sanitizer = :strict
+
+ # Log the query plan for queries taking more than this (works
+ # with SQLite, MySQL, and PostgreSQL)
+ config.active_record.auto_explain_threshold_in_seconds = 0.5
+
+ # Do not compress assets
+ config.assets.compress = false
+
+ # Expands the lines which load the assets
+ config.assets.debug = true
+end
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 59ff2b1..fe98b20 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -1,20 +1,67 @@
-# Settings specified here will take precedence over those in config/environment.rb
+Wikiufc::Application.configure do
+ # Settings specified here will take precedence over those in config/application.rb
-# The production environment is meant for finished, "live" apps.
-# Code is not reloaded between requests
-config.cache_classes = true
+ # Code is not reloaded between requests
+ config.cache_classes = true
-# Use a different logger for distributed setups
-# config.logger = SyslogLogger.new
+ # Full error reports are disabled and caching is turned on
+ config.consider_all_requests_local = false
+ config.action_controller.perform_caching = true
-# Full error reports are disabled and caching is turned on
-config.action_controller.consider_all_requests_local = false
-config.action_controller.perform_caching = true
+ # Disable Rails's static asset server (Apache or nginx will already do this)
+ config.serve_static_assets = false
-# Enable serving of images, stylesheets, and javascripts from an asset server
-# config.action_controller.asset_host = "http://assets.example.com"
+ # Compress JavaScripts and CSS
+ config.assets.compress = true
-# Disable delivery errors if you bad email addresses should just be ignored
-# config.action_mailer.raise_delivery_errors = false
+ # Don't fallback to assets pipeline if a precompiled asset is missed
+ config.assets.compile = false
-config.gem "brI18n"
+ # Generate digests for assets URLs
+ config.assets.digest = true
+
+ # Defaults to nil and saved in location specified by config.assets.prefix
+ # config.assets.manifest = YOUR_PATH
+
+ # Specifies the header that your server uses for sending files
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
+
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
+ # config.force_ssl = true
+
+ # See everything in the log (default is :info)
+ # config.log_level = :debug
+
+ # Prepend all log lines with the following tags
+ # config.log_tags = [ :subdomain, :uuid ]
+
+ # Use a different logger for distributed setups
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
+
+ # Use a different cache store in production
+ # config.cache_store = :mem_cache_store
+
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
+ # config.action_controller.asset_host = "http://assets.example.com"
+
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
+ # config.assets.precompile += %w( search.js )
+
+ # Disable delivery errors, bad email addresses will be ignored
+ # config.action_mailer.raise_delivery_errors = false
+
+ # Enable threaded mode
+ # config.threadsafe!
+
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
+ # the I18n.default_locale when a translation can not be found)
+ config.i18n.fallbacks = true
+
+ # Send deprecation notices to registered listeners
+ config.active_support.deprecation = :notify
+
+ # Log the query plan for queries taking more than this (works
+ # with SQLite, MySQL, and PostgreSQL)
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5
+end
diff --git a/config/environments/test.rb b/config/environments/test.rb
index a0db99c..031a224 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -1,22 +1,37 @@
-# Settings specified here will take precedence over those in config/environment.rb
+Wikiufc::Application.configure do
+ # Settings specified here will take precedence over those in config/application.rb
-# The test environment is used exclusively to run your application's
-# test suite. You never need to work with it otherwise. Remember that
-# your test database is "scratch space" for the test suite and is wiped
-# and recreated between test runs. Don't rely on the data there!
-config.cache_classes = true
+ # The test environment is used exclusively to run your application's
+ # test suite. You never need to work with it otherwise. Remember that
+ # your test database is "scratch space" for the test suite and is wiped
+ # and recreated between test runs. Don't rely on the data there!
+ config.cache_classes = true
-# Log error messages when you accidentally call methods on nil.
-config.whiny_nils = true
+ # Configure static asset server for tests with Cache-Control for performance
+ config.serve_static_assets = true
+ config.static_cache_control = "public, max-age=3600"
-# Show full error reports and disable caching
-config.action_controller.consider_all_requests_local = true
-config.action_controller.perform_caching = false
+ # Log error messages when you accidentally call methods on nil
+ config.whiny_nils = true
-# Tell ActionMailer not to deliver emails to the real world.
-# The :test delivery method accumulates sent emails in the
-# ActionMailer::Base.deliveries array.
-config.action_mailer.delivery_method = :test
+ # Show full error reports and disable caching
+ config.consider_all_requests_local = true
+ config.action_controller.perform_caching = false
-# Disable request forgery protection in test environment
-config.action_controller.allow_forgery_protection = false
+ # Raise exceptions instead of rendering exception templates
+ config.action_dispatch.show_exceptions = false
+
+ # Disable request forgery protection in test environment
+ config.action_controller.allow_forgery_protection = false
+
+ # Tell Action Mailer not to deliver emails to the real world.
+ # The :test delivery method accumulates sent emails in the
+ # ActionMailer::Base.deliveries array.
+ config.action_mailer.delivery_method = :test
+
+ # Raise exception on mass assignment protection for Active Record models
+ config.active_record.mass_assignment_sanitizer = :strict
+
+ # Print deprecation notices to the stderr
+ config.active_support.deprecation = :stderr
+end
diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb
index 839d4cd..59385cd 100644
--- a/config/initializers/backtrace_silencers.rb
+++ b/config/initializers/backtrace_silencers.rb
@@ -4,4 +4,4 @@
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
-# Rails.backtrace_cleaner.remove_silencers!
\ No newline at end of file
+# Rails.backtrace_cleaner.remove_silencers!
diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb
index d531b8b..5d8d9be 100644
--- a/config/initializers/inflections.rb
+++ b/config/initializers/inflections.rb
@@ -1,6 +1,6 @@
# Be sure to restart your server when you modify this file.
-# Add new inflection rules using the following format
+# Add new inflection rules using the following format
# (all these examples are active by default):
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
@@ -8,3 +8,8 @@
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )
# end
+#
+# These inflection rules are supported but not enabled by default:
+# ActiveSupport::Inflector.inflections do |inflect|
+# inflect.acronym 'RESTful'
+# end
diff --git a/config/initializers/load_app_config.rb b/config/initializers/load_app_config.rb.rails2
similarity index 100%
rename from config/initializers/load_app_config.rb
rename to config/initializers/load_app_config.rb.rails2
diff --git a/config/initializers/localization.rb b/config/initializers/localization.rb.rails2
similarity index 100%
rename from config/initializers/localization.rb
rename to config/initializers/localization.rb.rails2
diff --git a/config/initializers/nasty_hacks.rb b/config/initializers/nasty_hacks.rb.rails2
similarity index 100%
rename from config/initializers/nasty_hacks.rb
rename to config/initializers/nasty_hacks.rb.rails2
diff --git a/config/initializers/new_rails_defaults.rb b/config/initializers/new_rails_defaults.rb.rails2
similarity index 100%
rename from config/initializers/new_rails_defaults.rb
rename to config/initializers/new_rails_defaults.rb.rails2
diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb
new file mode 100644
index 0000000..87a27d3
--- /dev/null
+++ b/config/initializers/secret_token.rb
@@ -0,0 +1,7 @@
+# Be sure to restart your server when you modify this file.
+
+# Your secret key for verifying the integrity of signed cookies.
+# If you change this key, all old signed cookies will become invalid!
+# Make sure the secret is at least 30 characters and all random,
+# no regular words or you'll be exposed to dictionary attacks.
+Wikiufc::Application.config.secret_token = 'd4db7e1c74d119bf152adab65b8490569719e91ba8753ba6515c0ae72e3da5b52959d6b7e98c7fba26d89592024a45144fcd8d0f9be984f0ac14eb2735acd91d'
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb
index d4843aa..74b98fa 100644
--- a/config/initializers/session_store.rb
+++ b/config/initializers/session_store.rb
@@ -1,15 +1,8 @@
# Be sure to restart your server when you modify this file.
-# Your secret key for verifying cookie session data integrity.
-# If you change this key, all old sessions will become invalid!
-# Make sure the secret is at least 30 characters and all random,
-# no regular words or you'll be exposed to dictionary attacks.
-ActionController::Base.session = {
- :key => '_wikiufc_session',
- :secret => 'b5562c2c0918ac657089534e97f76ae0e042d350dd81aa18a0fdb8ce52df38e7ecd39cdfc3e682d2ef01fe3186c7ed2d9c8767825a876eb3e46323f26a7c346f'
-}
+Wikiufc::Application.config.session_store :cookie_store, :key => '_wikiufc_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
-# (create the session table with "rake db:sessions:create")
-# ActionController::Base.session_store = :active_record_store
+# (create the session table with "rails generate session_migration")
+# Wikiufc::Application.config.session_store :active_record_store
diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb
new file mode 100644
index 0000000..da4fb07
--- /dev/null
+++ b/config/initializers/wrap_parameters.rb
@@ -0,0 +1,14 @@
+# Be sure to restart your server when you modify this file.
+#
+# This file contains settings for ActionController::ParamsWrapper which
+# is enabled by default.
+
+# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
+ActiveSupport.on_load(:action_controller) do
+ wrap_parameters :format => [:json]
+end
+
+# Disable root element in JSON by default.
+ActiveSupport.on_load(:active_record) do
+ self.include_root_in_json = false
+end
diff --git a/config/languages/es.yml b/config/languages/es.yml
deleted file mode 100644
index 3926dff..0000000
--- a/config/languages/es.yml
+++ /dev/null
@@ -1 +0,0 @@
-"Hello %%, nice to meet you!": "¡Ola %%, encantado de conocerlo!"
\ No newline at end of file
diff --git a/config/languages/pt_BR.yml b/config/languages/pt_BR.yml
deleted file mode 100644
index d5bf264..0000000
--- a/config/languages/pt_BR.yml
+++ /dev/null
@@ -1 +0,0 @@
-"Hello %%, nice to meet you!": "Ola %%, prazer em conhecê-lo!"
\ No newline at end of file
diff --git a/config/locales/en.yml b/config/locales/en.yml
index f265c06..179c14c 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1,5 +1,5 @@
# Sample localization file for English. Add more files in this directory for other locales.
-# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
+# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
en:
- hello: "Hello world"
\ No newline at end of file
+ hello: "Hello world"
diff --git a/config/routes.rb b/config/routes.rb
index 5657126..6600dd9 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,93 +1,58 @@
-# Wiki UFC
-# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-
-ActionController::Routing::Routes.draw do |map|
-
- # Resources
- map.resources :users
- map.resources(:courses,
- :member => {
- :enroll => :get,
- :unenroll => :get
- }
- ) do |course|
-
- course.resources :events,
- :member => {
- :undelete => :post
- }
-
- course.resources :news,
- :singular => "news_instance",
- :member => {
- :undelete => :post
- }
-
- course.resources :wiki,
- :singular => "wiki_instance",
- :member => {
- :diff => :get,
- :versions => :get,
- :move_up => :get,
- :move_down => :get,
- :undelete => :post
- }
-
- course.resources :attachments,
- :member => {
- :download => :get,
- :undelete => :post
- }
- end
-
- # Log
- map.with_options :controller => 'log' do |log|
- log.course_log 'courses/:course_id/log', :action => 'index', :format => 'html'
- log.undo_course_log 'courses/:course_id/log/:id/undo', :action => 'undo', :format => 'html'
- log.formatted_course_log 'courses/:course_id/log.:format', :action => 'index'
- end
-
- # Wiki pages
- map.preview 'services/preview', :controller => 'wiki', :action => 'preview'
-
- # Widgets
- map.connect 'widgets/calendar/:id/:year/:month', :controller => 'events', :action => 'mini_calendar'
-
- # Login, logout, signup, etc
- map.with_options :controller => 'users' do |user|
- user.login 'login', :action => 'login'
- user.logout 'logout', :action => 'logout'
- user.signup 'signup', :action => 'signup'
- user.settings 'settings', :action => 'settings'
- user.recover_password 'recover_password', :action => 'recover_password'
- user.recover_password_with_key 'recover_password/:key', :action => 'recover_password'
- end
-
- # Pagina pessoal
- map.dashboard '/dashboard', :controller => 'users', :action => 'dashboard'
- map.formatted_dashboard '/dashboard/:secret.:format', :controller => 'users', :action => 'dashboard'
-
- # Stylesheets
- map.connect 'stylesheets/cache/:action.:format', :controller => 'stylesheets'
- map.connect 'stylesheets/cache/:action.:color.:format', :controller => 'stylesheets'
-
- # Mudancas recentes global
- map.log 'log', :controller => 'log', :action => 'index', :format => 'html'
- map.formatted_log 'log.:format', :controller => 'log', :action => 'index'
-
- # Front page
- map.index '', :controller => 'courses', :action => 'index'
+Wikiufc::Application.routes.draw do
+ # The priority is based upon order of creation:
+ # first created -> highest priority.
+
+ # Sample of regular route:
+ # match 'products/:id' => 'catalog#view'
+ # Keep in mind you can assign values other than :controller and :action
+
+ # Sample of named route:
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
+ # This route can be invoked with purchase_url(:id => product.id)
+
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
+ # resources :products
+
+ # Sample resource route with options:
+ # resources :products do
+ # member do
+ # get 'short'
+ # post 'toggle'
+ # end
+ #
+ # collection do
+ # get 'sold'
+ # end
+ # end
+
+ # Sample resource route with sub-resources:
+ # resources :products do
+ # resources :comments, :sales
+ # resource :seller
+ # end
+
+ # Sample resource route with more complex sub-resources
+ # resources :products do
+ # resources :comments
+ # resources :sales do
+ # get 'recent', :on => :collection
+ # end
+ # end
+
+ # Sample resource route within a namespace:
+ # namespace :admin do
+ # # Directs /admin/products/* to Admin::ProductsController
+ # # (app/controllers/admin/products_controller.rb)
+ # resources :products
+ # end
+
+ # You can have the root of your site routed with "root"
+ # just remember to delete public/index.html.
+ # root :to => 'welcome#index'
+
+ # See how all your routes lay out with "rake routes"
+
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
+ # Note: This route will make all actions in every controller accessible via GET requests.
+ # match ':controller(/:action(/:id))(.:format)'
end
diff --git a/db/seeds.rb b/db/seeds.rb
index 3174d0c..d34dfa0 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -2,6 +2,6 @@
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
-#
+#
# cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
-# Major.create(:name => 'Daley', :city => cities.first)
+# Mayor.create(:name => 'Emanuel', :city => cities.first)
diff --git a/lang/keys b/lang/keys
deleted file mode 100644
index c967185..0000000
--- a/lang/keys
+++ /dev/null
@@ -1,7 +0,0 @@
-course_created
-course_removed
-course_updated
-event_created
-event_removed
-event_updated
-login_required
diff --git a/lang/pt-br.yml b/lang/pt-br.yml
deleted file mode 100644
index 94de84a..0000000
--- a/lang/pt-br.yml
+++ /dev/null
@@ -1,71 +0,0 @@
-course: disciplina
-courses: disciplinas
-course_created: Disciplina cadastrada
-course_updated: Disciplina editada
-course_removed: Disciplina excluída
-
-event: evento
-events: eventos
-event_created: Evento cadastrado
-event_updated: Evento editado
-event_removed: Evento excluído
-event_restored: Evento restaurado
-
-news: notícias
-news_created: Notícia cadastrada
-news_updated: Notícia editada
-news_removed: Notícia excluída
-news_restored: Notícia restaurada
-news_about: Notícias de {disciplina}
-
-user: usuário
-users: usuários
-user_account_updated: Perfil editado
-user_account_removed: Conta removida
-user_account_created: Conta cadastrada
-
-attachment_created: Arquivo criado
-attachment_updated: Arquivo editado
-attachment_removed: Arquivo excluído
-attachment_restored: Arquivo restaurado
-
-wiki_page: Página wiki
-wiki_page_created: Página wiki criada
-wiki_page_removed: Página wiki removida
-wiki_page_updated: Página wiki atualizada
-wiki_page_restored: Página wiki restaurada
-
-recent_changes: Mudanças recentes
-log_about: Mudanças recentes em {disciplina}
-
-undo: Desfazer
-login_failed: Não foi possível fazer login
-login_required: É necessário fazer login para acessar esta área do site
-login_success: Olá, {u}!
-logout_success: Você fez logout
-
-navigation: navegação
-forums: fórums
-
-user_profile: perfil público
-edit_settings: editar configurações
-settings_updated: Configurações editadas
-
-is_too_large: é grande demais
-is_needed: é requerido
-
-body: conteúdo
-code: código
-content: conteúdo
-date: data
-description: descrição
-file: arquivo
-file_name: nome do arquivo
-full_name: nome completo
-name: nome
-password_confirmation: confirmação de senha
-password: senha
-period: semestre
-short_name: nome abreviado
-time: horário
-title: título
diff --git a/lib/tasks/gibberish.rake b/lib/tasks/gibberish.rake
deleted file mode 100644
index 7217bc8..0000000
--- a/lib/tasks/gibberish.rake
+++ /dev/null
@@ -1,16 +0,0 @@
-namespace :gibberish do
-
- # Bela gambiarra
- desc "Exports all Gibberish translation keys"
- task :export do
- ENV['GIBBERISH_EXPORT'] = 'true'
-
- puts "Running tests ..."
- `rake test 2> /dev/null`
-
- puts "Sorting keys ..."
- $stderr.puts `sort lang/tmp_keys | uniq`
-
- `rm lang/tmp_keys`
- end
-end
diff --git a/public/.htaccess b/public/.htaccess
deleted file mode 100644
index 2881e11..0000000
--- a/public/.htaccess
+++ /dev/null
@@ -1,40 +0,0 @@
-# General Apache options
-AddHandler fastcgi-script .fcgi
-AddHandler cgi-script .cgi
-Options +FollowSymLinks +ExecCGI
-
-# If you don't want Rails to look in certain directories,
-# use the following rewrite rules so that Apache won't rewrite certain requests
-#
-# Example:
-# RewriteCond %{REQUEST_URI} ^/notrails.*
-# RewriteRule .* - [L]
-
-# Redirect all requests not available on the filesystem to Rails
-# By default the cgi dispatcher is used which is very slow
-#
-# For better performance replace the dispatcher with the fastcgi one
-#
-# Example:
-# RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
-RewriteEngine On
-
-# If your Rails application is accessed via an Alias directive,
-# then you MUST also set the RewriteBase in this htaccess file.
-#
-# Example:
-# Alias /myrailsapp /path/to/myrailsapp/public
-# RewriteBase /myrailsapp
-
-RewriteRule ^$ index.html [QSA]
-RewriteRule ^([^.]+)$ $1.html [QSA]
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
-
-# In case Rails experiences terminal errors
-# Instead of displaying this message you can supply a file here which will be rendered instead
-#
-# Example:
-# ErrorDocument 500 /500.html
-
-ErrorDocument 500 "Application error
Rails application failed to start properly"
diff --git a/public/401.html b/public/401.html
deleted file mode 100644
index ef0470a..0000000
--- a/public/401.html
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
- Access denied (401)
-
-
-
-
-
-
-
Access denied
-
-
-
diff --git a/public/404.html b/public/404.html
index 88ee108..9a48320 100644
--- a/public/404.html
+++ b/public/404.html
@@ -1,7 +1,6 @@
-
The page you were looking for doesn't exist (404)