[Catalyst] ActiveRecord for Perl

Michael Reece mreece at vinq.com
Tue May 22 17:29:25 GMT 2007


On May 22, 2007, at 7:58 AM, Matt S Trout wrote:

>>   item = user.items.find(params[:id])
>
> my $item = $user->items->find($item_id);
>
>>   new_item = user.items.create!(params[:item])
>
> my $new_item = $user->items->create(\%item_info);

that's great; i thought i had recalled something similar, but  
couldn't find it again in my quick skim of DBIx::Class::Manual::*

>> you can get close to that with RDBO's $user->find_items() (and  
>> maybe DBIC
>> has something similarish) but the ruby way here feels so much better!
>
> How?

personal satisfaction.






More information about the Catalyst mailing list