Where did the /app/helpers docs go?

15 views
Skip to first unread message

Weston Platter

unread,
Apr 3, 2013, 4:39:21 PM4/3/13
to rubyonra...@googlegroups.com
Rails 3.2 Guides has small section on the /app/helpers convention (http://guides.rubyonrails.org/getting_started.html#view-helpers). 

The helper section has been removed in Edge Rails 4.x docs (http://edgeguides.rubyonrails.org/getting_started.html). I looked through the other guides and did not see it.

Anyone know were the section about Helper modules went? I think Rails Guides needs to cover this convention somewhere.

Ryan Bigg

unread,
Apr 3, 2013, 9:25:01 PM4/3/13
to rubyonra...@googlegroups.com

I agree that it should cover it somewhere. What seems like a good spot?



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Documentation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-do...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-docs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Weston Platter

unread,
Apr 4, 2013, 2:26:05 AM4/4/13
to rubyonra...@googlegroups.com
How about at the end of the Layouts and Rendering Guide?

I kept my first draft on my repo, and will push to master after I take a second look at it.

Suggestions are totally welcome!

Ryan Bigg

unread,
Apr 5, 2013, 3:41:40 AM4/5/13
to rubyonra...@googlegroups.com

I am not too sure of the example there. Looks like code that would be better off inside a partial to me. The example you're giving seems more like an anti pattern than a pattern.


It could still be used to represent what code shouldn't go inside a helper though, so not everything is in vain.

How about some code that calls out to another class, similar to this:

def money(value)
  Money.parse(value)
end

That would show that a helper can be used to shorten and reduce repetitiveness of code in the views.

Sound good?
Reply all
Reply to author
Forward
0 new messages