| append_query_string |
Generate the query string with any extra keys in the hash and append it to
the given path, returning the new path.
|
| build_query_string |
Build a query string from the keys of the given hash. If only_keys
is given (as an array), only the keys indicated will be used to build the
query string. The query string will correctly build array parameter values.
|
| defaults |
Return a hash of key/value pairs representing the keys in the route that
have defaults, or which are specified by non-regexp requirements.
|
| extra_keys |
Determine which keys in the given hash are "extra". Extra keys
are those that were not used to generate a particular route. The extra keys
also do not include those recalled from the prior request, nor do they
include any keys that were implied in the route (like a :controller that is
required, but not explicitly used in the text of the route.)
|
| generate |
Write the real generation implementation and then resend the message.
|
| generate_extras |
|
| generation_extraction |
Build several lines of code that extract values from the options hash. If
any of the values are missing or rejected then a return will be executed.
|
| generation_requirements |
Produce a condition expression that will check the requirements of this
route upon generation.
|
| generation_structure |
|
| matches_controller_and_action? |
|
| new |
|
| optimise? |
Indicates whether the routes should be optimised with the string
interpolation version of the named routes methods.
|
| parameter_shell |
A route’s parameter shell contains parameter values that are not in
the route’s path, but should be placed in the recognized hash.
|
| recognition_conditions |
Plugins may override this method to add other conditions, like checks on
host, subdomain, and so forth. Note that changes here only affect route
recognition, not generation.
|
| recognition_extraction |
Write the code to extract the parameters from a matched route.
|
| recognition_pattern |
Build the regular expression pattern that will match this route.
|
| recognize |
Write the real recognition implementation and then resend the message.
|
| segment_keys |
|
| significant_keys |
Return an array containing all the keys that are used in this route. This
includes keys that appear inside the path, and keys that have requirements
placed upon them.
|
| to_s |
|
| write_generation |
Write and compile a generate method for this Route.
|
| write_recognition |
Write and compile a recognize method for this Route.
|
<code/>and<pre/>for code samples.