Sha256: 4d6f6e85cec2f220767b91be01b9ecae67d0b044ec1e8b2fbb0223a84d79c9c6

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

= Tenon

== License

This project uses the MIT-LICENSE.  Do whatever you want with it as long as you
don't violate the licenses of the various open source pieces on which it
depends.

== Installation

In your Gemfile

    gem 'tenon'

and then bundle install.

in config/application.rb:

    require 'active_record/railtie'


in config/routes.rb:

    mount Tenon::Engine => '/tenon'


Run command:

    $ rake tenon:install:migrations
    $ rake db:migrate


You will need to have a database set up at this point.  Currently Tenon requires that you use postgres.

Running rake db:migrate probably threw up a devise error.  Create config/initializers/devise.rb and paste:

    Devise.setup do |config|
      ## paste the secret key line from the error output ##
    end


Run that command again:

    $ rake db:migrate


Install the Tenon helpers in app/controllers/application_controller.rb:

    helper Tenon::Engine.helpers

Install the necessary files to run and customize Tenon (this is now required):

    $ rails generate tenon:install

To run seed data (such as creating an admin user) from Tenon, open console and run:

    ENV['PASSWORD'] = 'password' # or something at least 8 chars long
    Tenon::Engine.load_seed

Restart your app and navigate to /tenon

If you want to be able to use rspec, which would be good, you will also need to run:

    bundle exec rails generate rspec:install

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tenon-1.0.28 README.rdoc