On May 26, 2010, at 6:53 AM, Ralph Shnelvar wrote:

> Is there any documentation for hash_for_*_url arguments?
> 
> What does this function do?

It returns a hash that makes up the pieces of the url necessary for url_for and 
the one expires_page that wants a hash.

The arguments are whatever you'd pass to "url_for"... that is...

<%=h news_post_path(:id => 1).inspect %>
<%=h hash_for_news_post_path(:id => 1).inspect %>

"/news/1"
{:category=>"News", :use_route=>:news_post, :only_path=>true, 
:controller=>"articles", :action=>"post", :id=>1}

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to