Re: [Rails-core] strict html documents in testing

2006-07-16 Thread David Goodlad
On 7/15/06, Kevin Clark <[EMAIL PROTECTED]> wrote: sounds great +1 On 7/15/06, Rick Olson <[EMAIL PROTECTED]> wrote: > I don't know about you guys, but I really hate those warnings that > assert_tag spews out. They have no controller/action associated with > them, so you have to hunt down w

[Rails-core] Rails Core Weekly July 2 - July 16

2006-07-16 Thread Rodney Ramdas
This is another edition of Rails Core Weekly, affectionately known as RCW. A much nicer pre-web 3.0 version is available from the following url: http://www.pinupgeek.com/articles/category/rails-core-weekly-news We have an Atom/RSS feed available there as well. Rails Core Weekly summarizes the r

[Rails-core] [PATCH] Simply_restful foo_destroy_url

2006-07-16 Thread Kyle Maxwell
There doesn't appear to be a named route for the destroy method. -- Kyle Maxwell destroy.patch Description: Binary data ___ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core

Re: [Rails-core] [PATCH] Simply_restful foo_destroy_url

2006-07-16 Thread Rick Olson
Of course not, you simply do: DELETE /articles/1 <%= link_to 'Delete', article_url(@article), :method => 'delete' %> On 7/16/06, Kyle Maxwell <[EMAIL PROTECTED]> wrote: There doesn't appear to be a named route for the destroy method. -- Kyle Maxwell _

[Rails-core] If controllers inherit then why not views? / DRY, REST & other buzzwords.

2006-07-16 Thread Peter Michaux
Hi, If I have controllers that inherit actions and helper methods then why not views that "inherit" templates and partials? I've been trying to DRY up my code and make it more REST friendly after the fallout of DHH's "A World of Resources" slides and blog post. With a move towards more RESTful c

Re: [Rails-core] [PATCH] Simply_restful foo_destroy_url

2006-07-16 Thread Zack Chandler
What about a confirm delete url with simply_restful?... unfortunately the show mapping already snaps up the :get method... On 7/16/06, Rick Olson <[EMAIL PROTECTED]> wrote: Of course not, you simply do: DELETE /articles/1 <%= link_to 'Delete', article_url(@article), :method => 'delete' %> On

[Rails-core] ActiveRecord, create Optimization Patch

2006-07-16 Thread zdennis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Attached is a patch with the following API change for ActiveRecord::Base.create. Currently ActiveRecord::Base.create takes either a hash of attributes or an array of hashes of attributes. If you pass in an array it will treat each hash individually an

Re: [Rails-core] ActiveRecord, create Optimization Patch

2006-07-16 Thread Rick Bradley
* zdennis ([EMAIL PROTECTED]) [060716 20:33]: > Could someone check this out and give some feedback? I have started to > develop this as a separate plugin for ActiveRecord, but the more I think > about it the more it seems that this sort of thing should be in core. > Thoughts? Those are impressive

Re: [Rails-core] ActiveRecord, create Optimization Patch

2006-07-16 Thread zdennis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rick Bradley wrote: > * zdennis ([EMAIL PROTECTED]) [060716 20:33]: >> Could someone check this out and give some feedback? I have started to >> develop this as a separate plugin for ActiveRecord, but the more I think >> about it the more it seems that

Re: [Rails-core] ActiveRecord, create Optimization Patch

2006-07-16 Thread zdennis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rick Bradley wrote: > * zdennis ([EMAIL PROTECTED]) [060716 20:33]: > > Not commenting on the viability of the patch as a whole, but perhaps > rather than :fast / :fastest it would be better to drop :fast (which as > I understand it simply reduces th

Re: [Rails-core] [PATCH] Simply_restful foo_destroy_url

2006-07-16 Thread Jamis Buck
Something like the following, then? GET /articles/1;confirm Which you configure by doing: map.resource :article, :member => { :confirm => :get } Then, you can get at that URL by invoking confirm_article_url. Lastly, just make sure your #confirm method has the link to DELETE, like Rick

Re: [Rails-core] [PATCH] Simply_restful foo_destroy_url

2006-07-16 Thread Zack Chandler
Perfect! Thanks Rick and Jamis. Zack On 7/16/06, Jamis Buck <[EMAIL PROTECTED]> wrote: Something like the following, then? GET /articles/1;confirm Which you configure by doing: map.resource :article, :member => { :confirm => :get } Then, you can get at that URL by invoking confirm_ar