MatthewRudy
Not a member
MatthewRudy's latest activity
Thursday, July 17 2008
-
MatthewRudy created the ticket at 1:39 PM#admin controller routes map.connect ':controller/:action/:id', :requirements => { :controller => /admin[\/]?[\w\d]*/ }GET /admin/doesnt_exist
will raise a...
-
MatthewRudy commented at 1:26 PMdef test_slice_with_splatted_keys original = { :a => 'x', :b => 'y', :c => 10, [:a, :b] => "an array key" } expected = { :a => 'x', :b => "y" } # Sho... -
MatthewRudy commented at 1:23 PMand here's a perversion of the attached test.
def test_slice_with_array_keys original = { :a => 'x', :b => 'y', :c => 10, [:a, :b] => "an array key" } e... -
MatthewRudy commented at 1:19 PMreiterating,
this is bad.
if you want to pass it an array,
you should be able to pass it an array,
if you want to splat it,
splat it
hash.slice(*[:a,:b])...
Sunday, June 29 2008
-
MatthewRudy commented at 11:19 AMI think you got the wrong site, mate.
This is a site for reporting bugs, or requesting changes to rails itself.
(at the moment any Comet implementation is pu...
-
MatthewRudy commented at 1:38 AMdon't know if I agree with that.
if I wanted to be rigidly tied to the db structure I'd write everything as SQL strings
the hash :conditions already brings a...
-
MatthewRudy commented at 1:21 AMand then one could argue the following;
class A has_many :bs, :limit => 2 end >> a.bs => [#< B:1 >, #<B:2 >] >> a.bs.create() (irb):10:in `irb_bindi...
Monday, June 23 2008
-
MatthewRudy commented at 12:22 AMyeah,
diff looks clean... nice.
like Lawrence's change also.
surely these should be merged together?
class Model belongs_to :association end Model.f...
Sunday, June 22 2008
-
MatthewRudy commented at 9:44 PMwell, that was my suggestion,
and what my code did was...
default to "1" or true
But, need to get a core team guy on here to decide what "should" be the def...
-