mandag 16. november 2009

Devise authentication

A great solution for authentication I used in a project today. Very simple to set up, and totally unobtrusive because of its middleware nature. Devise uses Warden.

A good blogpost explains.

http://github.com/plataformatec/devise

Devise worked great with my rails 2.3 project, restful nested resources and all. Now just need to get that actionmailer setup working...

wicked_pdf

Finally a pdf solution that works great and is fairly easy to set up. It uses simple html as a template for the pdf rendering.

First download and install wkhtmltopdf program. I used this osx version:
wkhtmltopdf

Then I had to change the name of the binary to just wkhtmltopdf and put it in the search path. In my case /bin

The wicked_pdf plugin uses the which command to locate it.

Then follow the simple instructions at wicked_pdf github page.