Tag Archives: setup

rake secret?

Bort and Restful Authentication, require you to edit the REST_AUTH_SITE_KEY. What does this mean? Rake has a ‘secret’ target which you can call; it generates a key. What about the ‘secret’ value in environment.rb? Added in Rails 2.0, as part of moving session state to the client side, this key encrypts session data. Continue reading

Posted in Development | Tagged , , , , | 2 Comments

Testing Rails Applications

In addition to providing you with a testing framework, Rails generates tests when you use scaffolding. You can even write your own tests (beyond these basic ones)–unit, functional, and integration tests. Here, we discuss how to set up the test environment (it requires its own test database), and run the tests. Continue reading

Posted in Testing | Tagged | Comments Off