All Blog Posts

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
(read more…)

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:

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

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

vbox_logo2_gradient.png

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

jolt.jpg

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

2310rails.jpg

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

Comments: 337, Rating: 0

Why Rails Developers Need God posted on 26 May 2009 23:28

Michaelangelo__adams_hand.png

By Ben Myles (read more…)

Comments: 24, Rating: 0

Ruby the Smalltalk Way posted on 25 May 2009 12:35

squeak1.gif

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:

simply-people-screen-1.png

Here is the updated tutorial! (read more…)

Comments: 9, Rating: 0

I need Windows XP Ruby advice posted on 19 May 2009 10:10

exclamation.png

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

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License