Permalink
Browse files

Cleans documentation from Helpers [ci skip]

  • Loading branch information...
1 parent 8dc4041 commit 5ab0c5dc22682647090aa4b84739910e079913d8 @alvaropereyra alvaropereyra committed Dec 1, 2012
@@ -45,7 +45,6 @@ module DateHelper
# 40-59 secs # => less than a minute
# 60-89 secs # => 1 minute
#
- # ==== Examples
# from_time = Time.now
# distance_of_time_in_words(from_time, from_time + 50.minutes) # => about 1 hour
# distance_of_time_in_words(from_time, 50.minutes.from_now) # => about 1 hour
@@ -166,7 +165,6 @@ def time_ago_in_words(from_time, include_seconds_or_options = {})
# Returns a set of select tags (one for year, month, and day) pre-selected for accessing a specified date-based
# attribute (identified by +method+) on an object assigned to the template (identified by +object+).
#
- #
# ==== Options
# * <tt>:use_month_numbers</tt> - Set to true if you want to use month numbers rather than month names (e.g.
# "2" instead of "February").
@@ -105,11 +105,12 @@ module Helpers
#
# if @person.update_attributes(params[:person])
# # success
- # else
+ # els
# # error handling
# end
#
- # That's how you typically work with resources.
+ # That's how you typically work with resources. Note that it
+ # would probably improve by using the Strong Parameters functionality
module FormHelper
extend ActiveSupport::Concern
@@ -18,7 +18,8 @@ module JavaScriptHelper
# Escapes carriage returns and single and double quotes for JavaScript segments.
#
- # Also available through the alias j(). This is particularly helpful in JavaScript responses, like:
+ # Also available through the alias j(). This is particularly helpful in JavaScript
+ # responses, like:
#
# $('some_element').replaceWith('<%=j render 'some/element_template' %>');
def escape_javascript(javascript)
@@ -43,12 +44,14 @@ def escape_javascript(javascript)
# </script>
#
# +html_options+ may be a hash of attributes for the <tt>\<script></tt>
- # tag. Example:
+ # tag.
+ #
# javascript_tag "alert('All is good')", defer: 'defer'
# # => <script defer="defer">alert('All is good')</script>
#
# Instead of passing the content as an argument, you can also use a block
# in which case, you pass your +html_options+ as the first parameter.
+ #
# <%= javascript_tag defer: 'defer' do -%>
# alert('All is good')
# <% end -%>
Oops, something went wrong. Retry.

0 comments on commit 5ab0c5d

Please sign in to comment.