[Rails-core] Re: move_to :plugins

2007-08-16 Thread Chris Wanstrath
plugin access to svn://errtheblog.com/svn/plugins and the corresponding Lighthouse account. We've got a purdy Warehouse setup at plugins.require.errtheblog.com, too. -- Chris Wanstrath http://errfree.com // http://errtheblog.com --~--~-~--~~~---~--~~ You receiv

[Rails-core] Re: I Miss the Semicolon

2007-08-01 Thread Chris Wanstrath
sted on 1.2.3, not sure about edge (but probably works). -- Chris Wanstrath http://errfree.com // http://errtheblog.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To p

[Rails-core] Re: I Miss the Semicolon

2007-08-01 Thread Chris Wanstrath
omafro > /users > > Individual items: > > /user/tomafro > /post/1 I love this. If I manage to pluginize it this week, I will let you know. -- Chris Wanstrath http://errfree.com // http://errtheblog.com --~--~-~--~~~---~--~~ You received this

[Rails-core] I Miss the Semicolon

2007-07-31 Thread Chris Wanstrath
The thing about the semicolon is how nicely it played with to_param'd resource identifiers. Take this: map.resources :users And a to_param on User: class User < ActiveRecord::Base alias_attribute :to_param, :name end And a find_by_name in our UsersController. Now we get /users/chri

[Rails-core] Re: Patch Process

2007-07-14 Thread Chris Wanstrath
Having them rejected with a reason would have helped. That said, I like the new wiki page. Simple and to the point. The patch process becoming more transparent is a real win, thanks guys. -- Chris Wanstrath http://errfree.com // http://errtheblog.com --~--~-~--~~--

[Rails-core] Re: Rails 2.0: Database Adapters as Plugins or RubyGems?

2007-06-28 Thread Chris Wanstrath
paths += %W( #{RAILS_ROOT}/vendor/plugins/blah_adapter/lib ) config.connection_adapters = %w( blah ) Then I put the adapter file into my plugin: vendor/plugins/blah_adapter/lib/active_record/connection_adapters/blah_adapter.rb Hope that helps whoever decides to work on this. -- Chris Wanstrath ht

[Rails-core] Re: with_scope should not be protected.

2007-06-18 Thread Chris Wanstrath
:class_name => 'Property', :conditions => 'face_id = #{id}' #{id} will be the id of your object, not your class. Dynamic. -- Chris Wanstrath http://errfree.com // http://errtheblog.com --~--~-~--~~~---~--~~ You received this mes

[Rails-core] Re: Sexy Schema Dumper

2007-05-11 Thread Chris Wanstrath
On 5/10/07, Chris Wanstrath <[EMAIL PROTECTED]> wrote: > When DHH made migrations sexier in [6667], he added this to the CHANGELOG: > > "Note: Schema dumping still happens in the old style -- someone care > to update it?" > > Okay: http://dev.rubyonrails.org/

[Rails-core] Sexy Schema Dumper

2007-05-10 Thread Chris Wanstrath
When DHH made migrations sexier in [6667], he added this to the CHANGELOG: "Note: Schema dumping still happens in the old style -- someone care to update it?" Okay: http://dev.rubyonrails.org/ticket/8281 Old tests pass and new tests have been added. -- Chris Wanstrath http://e

[Rails-core] Re: Calling Pagination Users

2007-05-09 Thread Chris Wanstrath
f anyone wants to jump on board and offer suggestions / patches / complaints, the Lighthouse project is perfect: http://err.lighthouseapp.com/projects/466-plugins/overview -- Chris Wanstrath http://errfree.com // http://errtheblog.com --~--~-~--~~~---~--~~ You re

[Rails-core] Re: Why, again, is it ActiveRecord::Base#update_attribute doesn't trigger validations?

2007-04-06 Thread Chris Wanstrath
y validations.rb to skip 'em. The original method is then preserved with the above name. -- Chris Wanstrath http://errtheblog.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core&

[Rails-core] Rails Console Bugfix + Enhancement

2007-01-11 Thread Chris Wanstrath
patches and have found them helpful. Seen the "how do I play with my custom helpers in the console" question asked enough, as well. Finally: a post about it http://errtheblog.com/post/43 Thanks. -- Chris Wanstrath http://errtheblog.com --~--~-~--~~~---~--~--

[Rails-core] Trac out of space

2006-09-10 Thread Chris Wanstrath
In case the hardworking dev.rubyonrails.org maintainers aren't aware, it looks like the Trac box has overrun its quota. I tried uploading a patch (more than once) this evening and was greeting with a lovely Python exception. The gist: "No space left on device." -- Chris

[Rails-core] Re: :throw option for AR finders that don't throw RecordNotFound exceptions

2006-08-30 Thread Chris Wanstrath
ty? I like what Jeremy is saying about load vs find. I think that's what I'm reaching for. When you find(13) you're asking Rails to load a specific record. When you find_by_id(13) you're like "hey give me this if you can, if not that's cool too."

[Rails-core] :throw option for AR finders that don't throw RecordNotFound exceptions

2006-08-30 Thread Chris Wanstrath
change is being discussed. But won't someone think of the children? -- Chris Wanstrath http://errtheblog.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this gr