Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
KISS CMS
JavaScript Ruby Other
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db/migrate
features
lib
script
spec
.autotest
.gitignore
.rspec
.rvmrc
Gemfile
Guardfile
LICENSE
README.md
README.rdoc
Rakefile
autotest
terryblr.gemspec

README.md

Terryblr

Installation guide

1) Our generator loads the application environment, and so will NOT work unless the devise.rb initializer has already been created.

`rails g devise:install`

2) Then, generate the Terryblr:

rails g terryblr
rake terryblr:install:migrations
# rake terryblr:install:assets

3) Configure the app to use the ActiveRecord session store, like this: (Otherwise, the flash photo uploader will not work)

$ cat config/initializers/session_store.rb
Rails.application.config.session_store :active_record_store,
  :key => Settings.session_key,
  :cookie_only => false,
  :secret => 'b2b9dc917f44439635be5b7d07af4b501f14a8f267b2461549fce7229e26fe29f62c3fd42e521d5c570dc524e32d2068a24e1f3490760fb34c09874e41d49fcc'

4) Migrate the DB

rake db:sessions:create
rake db:migrate

5) Chillax

Running the tests:

bundle exec rake spec
bundle exec cucumber

To use spork, first launch a Sport server like this:

RAILS_ENV=test spork rspec &2> /dev/null
RAILS_ENV=test spork cucumber &2> /dev/null

Then, add the command-line option --drb to your RSpec or Cucumber command

Troubleshooting

Explain how to create a first user

Something went wrong with that request. Please try again.