TinyMCE 4 text editor + elFinder file manager in Rails 4 app

This post shows how to use WYSIWYG text editor TinyMCE 4.1 in a Rails 4 application:



TinyMCE WYSIWYG text editor comes with a MoxieManager file managerĀ  which is not free.

File manager is needed to insert an image by selecting from images on server or uploading a new image to server.

elFinder is an open-source file manager. In order to use file manager with a Rails application, we need a backend (connector) – phallstrom/el_finder gem.


Read all details onĀ  github:

Install TinyMCE editor 4 with Elfinder file manager in Rails 4 app.



Deploy a Rails application with Capistrano 3

This Github repository contains an example of deploying Rails application with Capistrano 3 including features:

– copy config files to shared folder

– linked files and dirs

– precompile assets locally

– precompile assets only if files were changed

– restart app in Passenger

– show a maintenance page on site while the site is updating


Find it on Github: https://github.com/maxivak/deploy-rails-capistrano3. Download the files from the repository and use the tasks according to your requirements.


Custom controller actions in ActiveAdmin (Ruby on Rails)

ActiveAdmin is a popular Ruby on Rails plugin for creating admin area. It helps developers solve many common problems to view/edit data as administrator. There are several other similar plugins, but I prefer ActiveAdmin because it allows developers to customize almost everything.

This post shows how to to add a custom action to an ActiveAdmin controller.

Continue reading