Plugins - TableauEngine
Add to favoritesTableauEngine is a AJAX-based photo album engine ported from the original Tableau photo album for rails, found at http://creativi.st/tableau. Changes to the original Tableau include:
- integration with LoginEngine and UserEngine
- upgrade to Lightbox 2.02
This software package is developed using the Engines plugin. To find out more about how to use engines in general, go to http://rails-engines.rubyforge.org for general documentation about the Engines mechanism.
Installation
- Create your Rails application, set up your databases, grab the Engines plugin and the TableauEngine, and install them.
- Install the TableauEngine into your vendor/plugins directory
- Modify your Engines.start call in config/environment.rb
Engines.start :tableau # or :tableau_engine
- Edit your application.rb file so it looks something like the following
(optional):
class ApplicationController < ActionController::Base include TableauEngine end
- Edit your application_helper.rb file (optional):
module ApplicationHelper include TableauEngine end
- Perform any configuration you might need. You’ll probably want to set
these values in environment.rb (before the call to Engines.start):
module TableauEngine config :some_option, "some_value" end
- Initialize the database tables. You can either use the engine migrations by
calling:
rake engine_migrate to move all engines to their latest versions, or rake engine_migrate ENGINE=tableau to migrate only this engine. - The TableauEngine provides a default stylesheet and a small javascript
helper file, so you’ll probably want to include the former and almost
certainly the latter in your application’s layout. Add the following
lines:
<%= engine_stylesheet "tableau_engine" %> <%= engine_javascript "tableau_engine" %>
