Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion What is SimplyHelpful?

View Parsed - Show only message text

Received: by 10.36.148.9 with SMTP id v9mr2070066nzd;
        Tue, 05 Sep 2006 18:13:31 -0700 (PDT)
Return-Path: <mar...@comox.textdrive.com>
Received: from comox.textdrive.com (comox.textdrive.com [207.7.108.189])
        by mx.googlegroups.com with ESMTP id v28si2268708nzb.2006.09.05.18.13.30;
        Tue, 05 Sep 2006 18:13:30 -0700 (PDT)
Received-SPF: pass (googlegroups.com: best guess record for domain of mar...@comox.textdrive.com designates 207.7.108.189 as permitted sender)
Received: from comox.textdrive.com (localhost [127.0.0.1])
	by comox.textdrive.com (Postfix) with ESMTP id BA9856352;
	Wed,  6 Sep 2006 01:13:29 +0000 (GMT)
Received: (from marcel@localhost)
	by comox.textdrive.com (8.13.3/8.13.3/Submit) id k861DTbg094201;
	Wed, 6 Sep 2006 01:13:29 GMT
	(envelope-from marcel)
Date: Wed, 6 Sep 2006 01:13:29 +0000
From: "Marcel Molina Jr." <mar...@vernix.org>
To: rubyonrails-talk@googlegroups.com
Subject: Re: [Rails] What is SimplyHelpful?
Message-ID: <20060906011329.GB48101@comox.textdrive.com>
References: <AA18BC28-B28D-4D7B-9881-C10CAE121A1B@feldpost.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <AA18BC28-B28D-4D7B-9881-C10CAE121A1B@feldpost.com>
User-Agent: Mutt/1.5.11

On Tue, Sep 05, 2006 at 07:41:33PM -0500, Sebastian Friedrich wrote:
> There have been lots of commits by the core team lately to a plug-in  
> called SimplyHelpful[1]. Could anybody summarize what this is for?  
> Thanks.

It's applying opinions that evolved in the SimplyRestful plugin to the world
of helpers.

Just like SimplyRestful, though the conventional way of doing things
continues to be supported, if you jump on board with certain conventions
you'll get some convenience for free. While SimplyRestful took on the
controller side of things, this begins to address the view side of the
puzzle.

For example:

  @person # => <Person id: 1>

  render :partial => @person

is the same as

  render :partial => 'people/person', :object => @person

and

  render :partial => @people

is the same as

  render :partial => 'people/person', :collection => @person

and

  page[@person] 

is the same as
  
  page[dom_id(@person)]

which is

  page[:person_1]

and etc.

marcel
-- 
Marcel Molina Jr. <mar...@vernix.org>

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google