What is SimplyHelpful?

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.

Sebastian

[1]http://dev.rubyonrails.org/browser/plugins/simply_helpful/lib/simply_helpful

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

I should clarify, "though the *originally* conventional way of doing things continues to be supported, if you jump on board with certain *new* conventions which we're building atop the old ones you'll get some convenience for free." :wink:

marcel