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 [...]
Filed under: Development, English, Ruby On Rails on Juni 18th, 2009 | 1 Comment »
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
Filed under: English, Ruby On Rails on April 29th, 2009 | 2 Comments »
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 [...]
Filed under: English, Rails 2.1, Ubuntu on April 28th, 2009 | 3 Comments »
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 [...]
Filed under: Development, Emo, English, German, Inspiration, Music, Rails 1.2, Rails 2.0, Rails 2.1, Ruby, Ruby On Rails on August 30th, 2008 | 1 Comment »
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 [...]
Filed under: Development, English, Rails 2.0, Rails 2.1, Ruby, Ruby On Rails on Juli 2nd, 2008 | 5 Comments »