/railstheman

Rails editor for the middleman blog : manage your static articles in your browser

Primary LanguageRuby

RailsTheMan !

Rails editor for the middleman blog

Let's face it : Middleman is great to make static sites, but having to write our articles in code can be a pain.

RailsTheMan gives you a rich editor to write your articles as you like.

Alt demo

Config

Define the path to your middleman application (not the blog in your applicaiton) in config/application.rb :

config.path_application = 'yourpath'

You can also change the TinyMCE options in config/tinymce.yml

Start it

You can use it in local with the rails dev server :

rails s

It will list and create the articles in the path application of your middleman

Timezone

If you have set the timezone in your middlemanblog config.rb :

Time.zone = "Paris"

please set the same timezone in railstheman config/application.rb :

config.time_zone = 'Paris'

Note than railstheman doesn't set the hour in articles to avoid conflicts in the timezone

Features

It uses TinyMCE as editor with the gem tinymce-rails, and Stupid jQuery Table Sort to sort the articles table.

With my Writetheman gem to manage and format the middleman files,

In the editor there are two options I really like : Format/Inline/Code and Tools/Source

The Quote

railstehman gives a new type of article, the quote :

It uses the header parameters to add the author and source to an article.

To differentiate between the basic article and the quote, it adds 'category' in the header parameters : it contains 'quote' or 'article' or nothing (your goold old article)

Business projects

Have a look to the Middleman paid extension : Middleman Blog Editor

License

MIT, have fun