Forum: Ruby on Rails Rails 1.1 released

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
17acfbd3a05cfb59e0543235cc0a813b?d=identicon&s=25 Joshua Susser (Guest)
on 2006-03-28 08:45
(Received via mailing list)
I haven't seen a note here on the list, so in case anyone doesn't
have their RSS reader glued to the relevant blogs...

http://weblog.rubyonrails.org/articles/2006/03/28/...
active-record-respond_to-integration-tests-and-500-other-things

Congrats to David and all the core team, and thanks for your
dedication and all the work. This release looks really solid and has
some kick-ass features. Now get some sleep, y'all.

--josh
Josh Susser
http://blog.hasmanythrough.com
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-03-28 09:11
(Received via mailing list)
Joshua Susser wrote:
> I haven't seen a note here on the list, so in case anyone doesn't  have
> their RSS reader glued to the relevant blogs...
>
> http://weblog.rubyonrails.org/articles/2006/03/28/...
> active-record-respond_to-integration-tests-and-500-other-things
>
Woohoo!  Congratulations all round!

Just looking through that, I spotted some odd syntax:
>  # Single database query:
>   companies = Company.find(:all, :include => {
>     :groups => { :members=> { :favorites } } })
While the feature is undeniably cool, I can't work out how it works...
What's going on there?  How does {:favorites} get parsed in that
context?  IRb gives me a compile error for {:favorites} in Ruby 1.8.2...
  Is that a 1.8.4 thing?
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Mikkel Bruun (Guest)
on 2006-03-28 09:21
(Received via mailing list)
On Tuesday, March 28, 2006, at 8:10 AM, Alex Young wrote:
>>  # Single database query:
>>   companies = Company.find(:all, :include => {
>>     :groups => { :members=> { :favorites } } })
>While the feature is undeniably cool, I can't work out how it works...
>What's going on there?  How does {:favorites} get parsed in that
>context?  IRb gives me a compile error for {:favorites} in Ruby 1.8.2...
>  Is that a 1.8.4 thing?
>
>--

No it a rails thing...

It reads find Company, join on groups and join on members and favorites

:groups,:members,:favorites are the names of some associations...

Mikkel Bruun

www.strongside.dk    - Football Portal(DK)
nflfeed.helenius.org - Football News(DK)
ting.minline.dk      - Buy Old Stuff!(DK)
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-03-28 10:59
(Received via mailing list)
Mikkel Bruun wrote:
>>--
>
>
> No it a rails thing...
>
> It reads find Company, join on groups and join on members and favorites
>
> :groups,:members,:favorites are the names of some associations...
I know that...  I'm not querying the functionality.  It's how it works
that I'm intrigued by.  Is {:favorites} a default-valued hash?  A proc?
  A bad example?

I guess I'll have to delve into the source to see what it's doing.
992fe8c19bbbc27f2b562a9f96efc03d?d=identicon&s=25 Jamis Buck (Guest)
on 2006-03-28 18:06
(Received via mailing list)
On Mar 28, 2006, at 1:58 AM, Alex Young wrote:

>>> 1.8.2...
>
> I guess I'll have to delve into the source to see what it's doing.

It's a bad example. Should be { :members => :favorites }, not
{ :members => { :favorites } }

- Jamis
Eea7ad39737b0dbf3de38874e0a6c7d8?d=identicon&s=25 Justin Forder (Guest)
on 2006-03-28 23:59
(Received via mailing list)
Joshua Susser wrote:
> I haven't seen a note here on the list, so in case anyone doesn't have
> their RSS reader glued to the relevant blogs...
>
> 
http://weblog.rubyonrails.org/articles/2006/03/28/...
>
>
> Congrats to David and all the core team, and thanks for your dedication
> and all the work. This release looks really solid and has some kick-ass
> features. Now get some sleep, y'all.

+1

Good to see many positive comments on Slashdot, too:

     http://it.slashdot.org/it/06/03/28/1634201.shtml

   Justin
This topic is locked and can not be replied to.