Displaying 3 results from an estimated 3 matches for "page_url".
2006 Aug 02
0
Simply RESTful deletion
Evening all! I''m playing around with the new Simply RESTful plugin, and
I''ve got a question about the *_url methods.
>From what I understand, given a Page model, there are three _url methods
provided:
- page_url
- new_page_url
- edit_page_url
I''m a bit disturbed that there are only three, but that aside...
To delete a resource, I would say:
link_to(''Delete'', page_url(:id => @page), :method => :delete)
And I now have a link that points to pages/1 with an attribute of
...
2006 Apr 25
6
Does Rails need more useful URL helpers?
Similar topic to my last post, but a different brand of methods. In
particular, the url_for and link_to methods have come to bother me at
times. I will mention one instance in particular:
I am designing a high-end administrative interface. This interface
supports paging, sorting and limiting to specific field values. Thus I
have params named page, sort and limit.
The lack of elegance I see
2009 Aug 30
0
How to mock block
I have written the following codes:
uri = URI.parse(page_url)
response = Net::HTTP.start(uri.host, uri.port) do |http|
http.get(uri.request_uri, headers)
end
How can mock it with different uri.request_uri and returns different
response?
Thanks in advance,
Richard