This repository has been archived by the owner. It is now read-only.
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (27 sloc) 1015 Bytes

Rails 3.2 Integration for Aloha Editor

The aloha-rails gem integrates the AlohaEditor editor with the Rails 3.2 asset pipeline.


1. Add aloha-rails to your Gemfile

gem 'locomotive-aloha-rails', require: 'aloha-rails'

Then run bundle install.

2. Use AlohaEditor

Add to your application.js:

//= require aloha

and in your erb / haml /..etc layout

= stylesheet_link_tag 'aloha/css/aloha.css'

and use AlohaEditor in your view:

<script type="text/javascript">
    Aloha.ready( function() {

        // Make #content editable once Aloha is loaded and ready.



Sam Pohlenz for his tinymce-rails plugin as a blueprint.


Feel free to contact me at didier at nocoffee dot fr.

Copyright (c) 2013 NoCoffee