Documentation

Installation for Ruby on Rails applications

Install and configure the Boxcab Heroku add-on as described on the Heroku documentation page.

Then, in your controller handling your page, just insert the following code after the class statement:

boxcab_pages_here

Example:

class WelcomeController < ApplicationController

  boxcab_pages_here

  def index
    # render the index page ("/")
  end

end

If you don't want to enable Boxcab for all the actions of your controller, just use the only or except keywords and pass the name of your actions.

Example:

class PagesController < ApplicationController

  boxcab_pages_here only: [:home, :about_us]
  # or
  # boxcab_pages_here except: :blog

  def home
  end

  def about_us
  end

  def blog
    # we don't want to add a page for that view in the Boxcab Editor sidebar
  end

end

Alright, you're done with the installation. Now, let's make your page editable!