Saturday, August 8, 2009

restful_authentication plugin

Needs lots of tweaking! After messing around with a lot of different suggestions, and poking around on my own this blog post seems to cover almost everything you need.

http://raindroprecords.blogspot.com/2009/01/how-to-set-up-restful-authentication.html

There seems to be problems with the internationalization option. You need to make sure that you have translations for the months because the datetime_select tag uses it. Those translations can be found at:

http://github.com/rails/rails/blob/master/activesupport/lib/active_support/locale/en.yml#L15

You put this in the en.yml under config/locales. Note that the formatting is slightly off. Under 'date:' everything is under the ':format' element. Nothing from :day_names forward should be under ':format'

No comments: