Secure model mass assignment for administration panels

For the most applications I’m developing I want the users to be able to edit their user data or profile using model mass assignment in Rails.  Moreover I want additionally an easy administration panel for super users who can access all the attributes of the users (and nested attributes) via mass assignment.
Now what’s an easy and [...]

“undefined method `use_transactional_fixtures=’” after upgrading to Rails 2.3.2

After upgrading to Rails 2.3.2 I’ve tried to run the testcases. The following error occured:
test/test_helper.rb:22: undefined method `use_transactional_fixtures=’ for Test::Unit::TestCase:Class (NoMethodError)
Solution:
Test::Unit::TestCase changed to ActiveSupport::TestCase, so simply edit your test/test_helper and change the name of the class.
Keywords: functional test problems

Display problems w/ ATI Xpress 1250 under Jaunty (Ubuntu 9.04)

The flickering bug described in the following was fixed. If you don’t want to wait until it has been released officially, get the deb packages at launchpad:
https://launchpad.net/~tormodvolden/+archive/ppa
After installing you should be able to use the driver with the default EXA acceleration method again. If you’ve changed anything at the xorg.conf to avoid the flickering, don’t [...]

Smilies in Rails using BBCodeizer

I’ve already described how to enable support for Smilies in Rails using RedCloth. If you want to use BBCodeizer instead of RedCloth (Textile), here’s how to do it. We need to extend the BBCodeizer class. We could do this by creating a file in our /lib directory (e.g. my_string.rb), which has to be included [...]

Smilies in Rails using RedCloth

There’s also a guide to use Smilies in Rails using BBCodeizer.
RedCloth doesn’t come with support for smilies, so i’ve added it for one of my projects.
You need to extend the RedCloth class. You could do this by creating a file in your /lib directory, which you have to include in your environment.rb. Here an example [...]


linkboost