Go to Google Groups Home    Ruby on Rails: Talk
Re: [Rails] What is SimplyHelpful?

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

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>