- Back to the Blog
Rails Deployment; Capistrano, Passenger, NGINX posted on 19 Jul 2009 22:17
For the easiest deployment experience, I think, we should deploy using Capistrano with Git and Passenger. Of course, we should modify that recipe to use NGINX. While Apache uses half a gig of memory, NGINX can do the same job using 30 megabytes. So it's a must if you are using virtual machines. (read more…)
Comments: 70, Rating: 0
YAML Configuration File posted on 09 Jul 2009 10:22
In Ruby on Rails, you can create application specific configuration files. Put in "config/initializers/myapp.rb"
MYAPP_CONFIG=YAML::load( ERB.new( IO.read( "#{RAILS_ROOT}/config/myapp.yml" ) ).result )[RAILS_ENV].symbolize_keys
Comments: 30, Rating: 0
Tokyo Cabinet, Tokyo Tyrant and Rufus Tokyo in Ubuntu from Github posted on 08 Jul 2009 16:22
After reading the performance of Tokyo Cabinet, it was necessary to try it. It's easy to install it and try it in Ruby: (read more…)
Comments: 85, Rating: 0
On the Way to Faster, Bigger Rails Applications posted on 07 Jul 2009 14:47
To write large scale applications you need a few more tools than just using ActiveRecord:
- Tokyo Cabinet stores 1 million records in 0.7 seconds. Used by Japanese Facebook You need to use faster storage. Ordinary DB might not be sufficient.
- Rufus Tokyo Ruby Interface
- Installing all from GitHub
- Shooting Star, A Ruby implemetation of Comet, which is used by Google Talk. Polling is expensive. You need to handle real time events from the server for your AJAX applications.
- Juggernaut is actually easier to use.
- Starling, the job queue manager. Your API has to return as soon as possible. Queue the requests. Used in Twitter
- cache_fu, acts_as_cached
- Presentation of Chris Wanstrath, github
- Testing Caching
- RubyCAS Server
- Central authentication in one place for many applications
- You can manage it with Clearance - The Rails Authentication For Developers Who Write Tests (source at github) (read more…)
Comments: 51, Rating: 0
Factory Girl for Rails can do more... posted on 25 Jun 2009 13:31
Ignore this whole article. Lastest versions of FactoryGirl are capable without tricks. Just go for the latest… (read more…)
Comments: 485, Rating: 0
Rails Integration Tests posted on 24 Jun 2009 14:46
Integration tests used to be a pain. Now you can really write the scenarios as they should be and have your integration tests: Shoulda + Factory_Girl + Webrat for Rails Integration Tests: (read more…)
Comments: 10, Rating: 0
Validations and Regular Expressions posted on 10 Jun 2009 20:14
While reading about Validations in Ruby on Rails, you've found out that you need to know Regular Expressions to validate the format of strings. You can test and learn regular expressions online easily here. (read more…)
Comments: 7, Rating: 0
Poll: Ruby on Rails Deployment posted on 07 Jun 2009 19:27
Do you need an up-to-date deployment tutorial for Ruby and Rails? Vote Here. (read more…)
Comments: 0, Rating: 0
Ruby vs Java posted on 05 Jun 2009 22:29
I defend my point! This is the Ruby code (read more…)
Comments: 56, Rating: 0
Rails: Switching the Database in Use to Another posted on 05 Jun 2009 00:09
You might easilty switch to another database in Rails. But defautl Rails projects use SQLite. To see the supported databases execute: (read more…)
Comments: 56, Rating: 0
Serving from a Virtual Box Machine posted on 04 Jun 2009 09:41

Your virtual machine on VirtualBox can be a server. Let's say you have a virtual machine named "My Server". Execute the script below on your host (not the virtual machine): (read more…)
Comments: 35, Rating: 0
Multiple conflicting GEM libraries; Ghost Ruby on Rails posted on 03 Jun 2009 20:14
UPDATE: Using Hobo Edge On Rails 3 describes installing gems for both Rails 2 and Rails 3 in addition to installing Hobo on Rails3 using rvm. It also solves the problem here better. Go and do it: exit(0). (read more…)
Comments: 44, Rating: 0
Stop Smoking, Keep Geeking posted on 03 Jun 2009 12:08

Programming really made me smoke more. Debugging was smoking. Conceiving new ideas was smoking. Creativity was smoking. And getting double caffeine… One more coffee… (read more…)
Comments: 16, Rating: 0
Rails 2.3 Engines, Reusability posted on 28 May 2009 13:07
We want reusable components in our applications. With engines, whole model, view and persistence, a whole slice of application is available for reuse. Engines used to be a Rails plugin. Now it's embedded in Rails 2.3
- Railscasts: Rails Engines
- Slideshow: Power of Rails Engines and Templates
- Engines in Rails 2.3 by Mike Perham
- ASCIICasts Rails Engines
- Getting Started with Engines Development in Rails (read more…)
Comments: 337, Rating: 0
Why Rails Developers Need God posted on 26 May 2009 23:28

By Ben Myles (read more…)
Comments: 24, Rating: 0
Ruby the Smalltalk Way posted on 25 May 2009 12:35

Maybe you have been hearing that Ruby is inspired by Smalltalk. Huw Collingbourn gives you a chance to feel it by comparing the two languages. You can discover a lot more about the power of Ruby learning the powers of Smalltalk. Here is the full story... Uh, if you are still saying what is Ruby on Rails then you can enjoy a quick but productive first experience of Ruby on Rails here. And you can immediately start to play with Smalltalk using Squeak or Dolphin Smalltalk (read more…)
Comments: 9, Rating: 0
Updated Tutorial: Ruby On Rails With One Model posted on 20 May 2009 10:35
Now with test data to ease your tutorial experience:
Here is the updated tutorial! (read more…)
Comments: 9, Rating: 0
I need Windows XP Ruby advice posted on 19 May 2009 10:10

I would appreciate any suggestions and feedback on this problem (read more…)
Comments: 15, Rating: 0
Rails101 Ubuntu, Windows, JRuby posted on 19 May 2009 10:07
So far I've got the feedback that Rails101 works
- on Ubuntu/Kubuntu flawlessly
- on Windows, there is a basic problem on Ruby Read more . My latest upgrade works around this although the basic problem is not solved. Projects can be initialized on Windows now without any problems. Enjoy Rails101 on Windows, too.
- on JRuby, there is a workaround. Of course, we are looking for easier ways. But once you've created your project, it's a breeze to construct your model. Read more (read more…)
Comments: 7, Rating: 0
Firefox CSS Tools posted on 17 May 2009 23:09
Developing Ruby on Rails or any other language, we can't escape CSS design. But recently, it's becoming easier with new tools:
- CSS Tips
- 10 Popular Web Designer Tools For Firefox
- HTML and CSS Tools
- 10 Most Useful Firefox Plugins For Web Developers
- 11 Useful Tools To Check, Clean & Optimize Your CSS File
- 60 CSS Tools to reduce your work load
- 50 Extremely Useful And Powerful CSS Tools (read more…)
Comments: 26, Rating: 0

