Home

likethesky edited this page Nov 5, 2012 · 7 revisions
Clone this wiki locally

Welcome to the cantango-demo wiki!

To get this demo to at least start working, try the following steps:

  1. Clone the demo and run bundle install
  2. Comment out all code in the following two files:
  • app/admin/admin_users.rb
  • config/initializers/cantango.rb
  1. Run rake db:migrate && RAILS_ENV=test rake db:migrate
  2. UNcomment out the above two files (the ones in Step 1. above), restoring them to their former state!
  3. Comment out the following line in app/controllers/application_controller.rb:
  • #before_filter :set_timezone (make it look like it does here--comment it out)
  1. Delete the file public/index.html.
  2. Copy (from the raw version link in upper right) this gist and REPLACE the text here with the gist:
  • app/views/application/index.html.haml

Now run the app! That is:

Notes:

  • Click the Admin Forgot Password link you'll have at localhost (once you do steps 6.-7. above) and enter in the following email: admin@example.com Then look in your console log for the link to hit so that you can reset the admin password to one you know. (For users, just click the User Sign Up link.)

  • To further modify Active_Admin, you could use the tips found at this tutorial.