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 »
Rails doesn’t seem to like dots and other special chars in its routes.
If you want to use URLs like http://www.domain.com/post/1/just_a_test.. logically the following route seems to be sensible:
map.connect ‘/post/:id/:title’, :controller => ‘forum’, :action => ’show_post’
But rails won’t like the dots. Use a route like the following to allow a URL with special characters to be [...]
Filed under: English, Rails 1.2, Rails 2.0, Rails 2.1, Ruby, Ruby On Rails on Juli 2nd, 2008 | 6 Comments »
If you want to provide a username and password for a HTTP Basic Authentication in one of your functional tests, simply use the following:
def test_should_get_index
@request.env["HTTP_AUTHORIZATION"] = “Basic ” + Base64::encode64(“username:password”)
get :index
assert_response :success
assert_not_nil assigns(:articles)
end
Keywords: rails test, functionals, authorization, basic http authentication, how to test
Filed under: English, Rails 2.0, Rails 2.1, Ruby, Ruby 1.8, Ruby On Rails on Juni 23rd, 2008 | 6 Comments »