Flowdock
method

new_element_path

Importance_1
v3.0.5 - Show latest stable - 0 notes - Class: ActiveResource::Base
new_element_path(prefix_options = {}) public

Gets the new element path for REST resources.

Options

  • prefix_options - A hash to add a prefix to the request for nested URLs (e.g., :account_id => 19 would yield a URL like /accounts/19/purchases/new.xml).

Examples

  Post.new_element_path
  # => /posts/new.xml

  Comment.collection_path(:post_id => 5)
  # => /posts/5/comments/new.xml
Show source
Register or log in to add new notes.