Latest Posts:
Tagging & Ruby on Rails posted on 07 Jun 2011 15:17
Just read Tagging Tutorial and get ready for blazing fast and easy tagging on your objects. All thanks to Soveran/ Ohm: The library that maps ruby objects to Redis . (read more…)
Comments: 99, Rating: 1
Rails: Search Comments Only posted on 04 Jun 2011 12:51
You can only inside the comments of your ruby files:
rake notes:custom ANNOTATION=\(.*find_me.*\)
Comments: 52, Rating: 0
Redis Server Setup on Ubuntu posted on 22 Mar 2011 15:34
If you have maverick: (read more…)
Comments: 89, Rating: 0
Using Hobo Edge on Rails 3 posted on 06 Mar 2011 01:18
I describe here installing Hobo Edge on Rails 3 using rvm. And command prompt shows your current gemset. To keep my existing applicaitons happy, I will also define a gemset for Rails 2 Hobo applications. (read more…)
Comments: 60, Rating: 0
Rails: Match each has_many with a belongs_to posted on 25 Feb 2011 21:53
Matching each belongs_to to a has_many might be tedious. You can check it on the bash shell:
A=parent_class; B=child_class; grep -R :$B app/models/*.rb | grep has_many | grep $A; grep -R :$A app/models/*.rb | grep $B
Then you'll see clearly parent and child classes are matching:
./parent_class.rb: has_many :child_classes, :dependent=>:destroy ./child_class.rb: belongs_to :parent_class
Comments: 39, Rating: 0
git status. Oh my god there are many untracked deletes posted on 22 Feb 2011 16:44
git status is reporting that there are many deleted files. And you really want to remove them from repository. Do 'git rm' one by one? No, you don't need to:
git status | grep deleted: | cut -d: -f2 | xargs git rm
Comments: 61, Rating: 0
Ruby on Rails: When many tests are failing posted on 11 Feb 2011 15:08
You need to correct an application but so many unit tests are failing. You're lost in the verbosity of the output. You can filter out the test results.
rake test | grep test.rb | cut -d: -f1 | sed 's/\[//g'
Comments: 37, Rating: 1
You have the documentation of gems posted on 28 Dec 2010 13:41
Start the gem documentation server (read more…)
Comments: 34, Rating: 0
Switching gem libraries using update-alternatives posted on 15 Dec 2010 13:13
Maintaining more than one rails and gems library at your development machine using update-alternatives is possible. But note that it's better done with RVM nowadays… You can still ready this article to learn more about update-alternatives. 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: 74, Rating: 0
Finding the guilty posted on 14 Dec 2010 15:21
This is a story about debugging deeply into Rails using method hooks and dumping the stack. Suddenly I've found out that rake tasks were not using correct pluralizations. Out of curiosity added those lines to config/initialize/inflections.rb (read more…)
Comments: 25, Rating: 0
Hobo Page Structure posted on 10 Dec 2010 13:07
Hobo Page Structure. Quick reference to customize DRYML pages. Handy to include as comments in DRML pages. (read more…)
Comments: 32, Rating: 0
Full Stack Testing a HOBO Application posted on 03 Dec 2010 18:10
All testing strategies and dsl covered in one simple Hobo application. Hands on introduction the unit, functional and acceptance tests follow here. If you are only insterested in testing bits then jump directly to that section. (read more…)
Comments: 108, Rating: 0
FactoryGirl in Development Environment posted on 03 Dec 2010 01:15
You can use FactoryGirl to populate the databse during development. You need Factories for test. But I don't see any reason that you cannot use them in development environment also. (read more…)
Comments: 44, Rating: 0
Hobo Security Hole posted on 02 Dec 2010 22:46
This problem is fixed in 1.0-stable and 1.3 (read more…)
Comments: 52, Rating: 0
Deleting all records in rails posted on 23 Nov 2010 17:01
If you need to run your tests without transactional fixtures then you can ensure all records are deleted after the test. (read more…)
Comments: 49, Rating: 0
Steak Capybara on Rails 2.3 posted on 22 Nov 2010 17:31
Using Capybara with Steak is a very easy way acceptance testing on Rails. However, to run this nice test framework for your Rais 2.3.x applications you need to install rspec, steak and capybara as below. Rails 2.3.x uses rspec 1.3.x. (read more…)
Comments: 56, Rating: 0
Hobo Organizations - Your first hobo rails application posted on 22 Nov 2010 10:27
Quick steps to make a hobo application. Let's have a database of organizations with a name. (read more…)
Comments: 52, Rating: 0
Distributed multihead support with Linux and Xdmx posted on 18 Nov 2010 09:52
The article Distributed multihead support with Linux and Xdmx explains how to. I am working on a 4 monitor desktop at my work. (read more…)
Comments: 25, Rating: 0
Installing memcached-northscale on Ubuntu posted on 17 Nov 2010 15:12
UPDATE: memcached-northscale is no more used. Heroku uses Dalli.
exit(0) (read more…)
Comments: 63, Rating: 0
See all posts
See my LinkedIn profile for more details.
Follow me on Twitter
Umur Ozkul can help you with the Sense team at
.
Listed by

blog directory

![]()



