Skip to content

About

Add aloha to rails 3

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

Aloha::Rails

Power your rails 3 app with the Aloha Editor.

Installation

Add this line to your application's Gemfile:

gem 'aloha-rails'

Run the generator to install the Aloha config files:

rails generate aloha:install [--js]

Pass --js if you want the javascript version.

Usage

Edit these files to configure aloha:

* app/assets/javascripts/aloha-config.(coffee|js)
* config/initializers/aloha.rb

To setup aloha, add this in the <head> section of your template:

= javascript_include_tag 'application'
= aloha!

Finally, to make things editable, add a .editable-(long|short)-text to the HTML element:

div.editable-long-text
  p Lorem Ipsum...

About

Add aloha to rails 3

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors