Install Rails Connector in order to access and display CMS content directly from your Rails application.
The following instructions refer to Rails Connector 6.7.3 upwards. Instructions for installing previous versions can be found in the corresponding manuals (PDF). For information about updating from an earlier version of Rails Connector to the current version, please contact our Customer Service.
$ cd myProject
license.xml, to the
configdirectory underneath the project directory.
database.ymlfile needs to contain the proper definition of the CMS Fiona database:
cms: adapter: mysql database: MyFionaDB username: MyFionaDB-Read-User password: MyFionaDB-Read-User-Password socket: /var/run/mysqld/mysqld.sock
gem 'mysql2' gem 'infopark_rails_connector', '~> x.y.z' gem 'infopark_fiona_connector', '~> x.y.z'
$ bundle install
config/initializers/rails_connector.rbas well as
config/initializer/rails_connector.rbinitializer file you can adapt the modes of operation of the Rails Connector. In case you are using a CMS instance name other than
default, provide the correct instance name by modifying the following line in the initializer:
RailsConnector::Configuration.instance_name = 'instance_name'
configuration.rbfile, the Rails project can be adapted to your local development environment.
$ rails s
$ gem server
http://localhost:8808/) and navigate to
infopark_fiona_connector. More information on running a gem server is available on the RubyGems site.