Integrating the Time Machine

The feature described here is an optional part of the Rails Connector up to version 6.9.1. If you wish to continue to use this feature in a later version of the Rails Connector, you can find the corresponding source code in a Git-repository.

Run the rails_connector_addons generator, supplied with the Rails Connector Addon Gem, in order to create all the files necessary for using the Time Machine (for this, the infopark_rails_connector_addons gem must have been installed):

$ script/generate infopark_rails_connector_addons

You should now have an infopark_rails_connector_addons.rb file in your application's config/initializers directory, in which the Time Machine is turned on by default. To override this, remove the :time_machine entry in the RailsConnector::Configuration.enable() statement.

Use the TimeMachineHelper to create a link that opens the Time Machine window:

<%= time_machine_link 'Time Machine' %>

In case the MenuHelper is being used on the same page, it is necessary to pass it the parameter current_time so that documents linked in the generated navigation receive the same time configuration. Consult the helper's documentation for further information on that. It can be found in the doc directory of the Rails Connector Addon gem.