Posted in 02/06/2010 ¬ 1:38 amh.ali.sogukpinar
Ruby on Rails has build in features for writing to you application log file. You can directly use the logger object for this purpose. Following line when it is executed will print “Hello world” to you log file. logger.info ‘Hello world’ You can use different log levels fatal, error, warn, info, debug . logger.error ‘Hello [...]
Read the rest of this entry »
Posted in 21/01/2010 ¬ 10:41 amh.ali.sogukpinar
Ruby on Rails distributed with GEM packaging system. If you are installing Rails on Ubuntu probably you will end up using Ubuntu packaging system and GEM in combination. For a proper installation you need to do series of actions. A friend of mine, Umur Ozkul, has written an article for Rails Installation. It is written [...]
Read the rest of this entry »
Posted in 23/08/2009 ¬ 2:24 pmh.ali.sogukpinar
Today I was busy with finalizing my KVM based Rails appliance. Appliance is almost ready and I wanted to test it with a simple test application. First problem was missing mysql support. When I tried to install the mysql extensions I got the following error. kok@railsserver:/home/kok/sudo gem install mysql Building native extensions. This could take [...]
Read the rest of this entry »
Posted in 08/08/2009 ¬ 1:15 pmh.ali.sogukpinar
For my current Ruby on Rails project I am using email based authentication plug-in clearance. After the registration users get an email with an activation link, but at development environment I don’t have fully functional mail server. I don’t need it either. I just want to catch the generated emails and I don’t want to [...]
Read the rest of this entry »
Posted in 27/06/2009 ¬ 8:56 pmh.ali.sogukpinar
Rails is an excellent framework but till version v2.2 there wasn’t any build in internationalization support. You had to use different plug-ins in order to support internationalization. It was quite a disappointment to me. As of v2.2 Internationalisation on is natively supported by framework. Today I wanted to give it a try and see what [...]
Read the rest of this entry »