Based on
- Rick Olson's ... script/plugin install http://svn.techno-weenie.net/projects/plugins/restful_authentication
- activefx's tutorial ... http://www.railsforum.com/viewtopic.php?id=14216
- gmail access ...
http://21croissants.blogspot.com/2007/08/configuring-rails-to-use-gmails-smtp.html
(formerly http://blog.pomozov.info/posts/how-to-send-actionmailer-mails-to-gmailcom.html) - acts_as_list ... script/plugin install http://dev.rubyonrails.org/svn/rails/plugins/acts_as_list/
- acts_as_list tutorial ... http://noobonrails.blogspot.com/2007/02/actsaslist-makes-lists-drop-dead-easy.html
- As always, thanks to ... Peepcode
- and ... Ryan Bates at Rails Casts
- and ... the Ruby on Rails core.
What have I done?
- Renamed Permissions to Roles_Users to remove the unneeded :through relationship
- Removed failing activation tests due to their move to account_controller
- Added lots of tests
- Added some styling
- Added dynamic menu based on pages and their position
- Removed the default routes (for safety)
- Pages index (show only body abstract (first ~50 characters ...))
- Add acts_as_list to menu
- The root route is pages/1/show_position (put). The id may need to be changed.
- Added contact feature for user messages to the admin.
- Add contact page ONLY for registered users.
What do I need to do before posting?
- add some assertions regarding flash to tests
- add some assertions regarding render to tests
What I could do?
- Add account avatar
- Add dragability to adjust menu list positions
- pretty urls for pages so that "pages/Home" would show the page with the title "Home"
What I need to do to source before posting?
- Remove versions directories
- Remove my database info
- Remove my email info from mail.rb
- Remove my email info tests
- Remove my email info migrations
- Remove my email from user_mailer
- Remove my logs
What will you need to do?
- Setup gmail account for this (and enable the IMAP access?)
- Modify settings to ... config/initializers/mail.rb
- Modify email to ... app/models/user_mailer.rb
- Setup your database
- User your own database config/database.yml
- Change your admin password or disable the account.
- Change your admin email for user messages.
BE ADVISED!
These unit tests will attempt to send emails to several of the users in the fixtures and unit tests, which will fail unless you change them to real email addresses.
