Dear list,

This weeks RCW has a slightly different format than before. After all,
since what we want is less bloat, this RCW is less verbose. Please do
let me know what you think off-list.

*Interesting stuff on the Rails Timeline*

_Fixed and commited to trunk:_

An issue with not null columns in SQLite3 migrations(<a
href="http://dev.rubyonrails.org/ticket/5215";>#4419</a>) by Greg
Lappen's patch <a
href="http://dev.rubyonrails.org/ticket/5215";>5215</a>

_Cool Enhancements (not commited yet)_

An enhancement to Marcel Molina Jr.'s original <a
href="http://dev.rubyonrails.org/changeset/3118";>Symbol#to_proc</a> is
further enhanced by by <a
href="http://dev.rubyonrails.org/ticket/5295";>Nobuhiro Imai</a>.
Symbol#to_proc does:

<pre>
 {1 => "one", 2 => "two", 3 => "three"}.sort_by(&:first).map(&:last)
#=> ["one", "two", "three"]
</pre>

(Earlier <a 
href="http://blogs.pragprog.com/cgi-bin/pragdave.cgi/Tech/Ruby/ToProc.rdoc";>PragDave</a>
called this "... an incredibly elegant use of coercion and of
closures")

_New Features in trunk (committed)_

David checked in <a
href="http://dev.rubyonrails.org/changeset/4440";>uninstall.rb</a> that
makes it possible to uninstall plugins.

We've spoken about it before in RCW but Hampton's solution to wrap
your conditional bind variables in a hashes is committed by DHH. So
now, no more of this:

Topic.find(1, :conditions => [:author_name = ? and :title = ?,
@author.name, 'AWWR'])

but simply

Topic.find(1, :conditions => { :author_name => "David", :title => "AWWR" }

will do just fine. That's so much better on my eyes, thanks again Hampton.

Also Jamis makes sure Named Routes will never be relative to some
containing module ever again:

map.connect "/connection/connection", :controller =>
"connection/connection"  # => /connection/connection

(btw you are not seeing double)

*Discussion/Debates*

Blair starts a <a
href="http://www.ruby-forum.com/topic/68209#new";>discussion></a> about
granting partial commit access to trunk.
The Continuous Integration discussing rages <a
href="http://www.ruby-forum.com/topic/67869#new";>on</a>.
Julian <a href="http://www.ruby-forum.com/topic/68172#new";>restarts</a>
a discussion about a url_for in a mailer view.
Also there was an interesting <a
href="http://www.ruby-forum.com/topic/68613#new";>thread</a> leading up
to a good tip on reloadable modules.
But the longest thread is on "<a
href="http://www.ruby-forum.com/topic/67958#new";>Too.Many.Scriptaculous.Tickets</a>".
The title says it all. A spin off discussion led by Kevin Clark about
submitting enhancements in general is <a
href="http://www.ruby-forum.com/topic/67958#new";>here</a>.


*RSS and Feedback*

RSS feed : <a 
href="http://www.pinupgeek.com/articles/category/rails-core-weekly-news";>here</a>
Feedback : [EMAIL PROTECTED]
Credits: thanks to <a href="http://blog.caboo.se";>#caboose</a>for reviewing !
--
Rodney
http://www.pinupgeek.com
http://www.dutchrailers.org
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to