Cyrille
CTO · Not a member
Cyrille's latest activity
Saturday, September 11 2010
-
Cyrille commented at 9:31 AM@Neeraj
In rails 2 I think you were allowed to do stuff like
with_exclusive_scope do named_scope :most_recent ... named_scope :cheapest ... end...
Thursday, September 02 2010
-
Cyrille commented at 12:14 PMMoreover:
class Organization < ActiveRecord::Base default_scope where("organizations.state = 'active'").order("organizations.qs DESC, organizations.title AS...
Tuesday, August 24 2010
-
-
Cyrille commented at 8:23 AMrender :layout => 'other_layout'is definitely working however I personally think layout is better in controller class declaration
layout 'other_layout', :on...
Tuesday, June 15 2010
-
Cyrille commented at 4:13 PMReading 2 times this brilliant post http://yehudakatz.com/2010/05/05/ruby-1-9-encodings-a-primer-and-th... I found that the answer is a database driver problem...
-
Cyrille commented at 3:43 PMWondering if it's the same problem as "incompatible character encodings: UTF-8 and ASCII-8BIT" which I get trying to display a string in an haml template from a...
Thursday, January 07 2010
-
Cyrille commented at 9:47 AM+1
Imagine if your models have state machine most of the time you want to count only 'active' elements.
Very common e-commerce case : product and category. In f...
Tuesday, December 15 2009
-
Cyrille commented at 5:30 PMI confirm the exact same problem on 2.3.5 however the exact same code 2.3.4 works