Creates a link tag of the given +name+ using an URL created by the set of +options+.
It's also possible to pass a string instead of an options hash to get a link tag that just points without consideration. If null is passed as a name, the link itself will become the name. The $html_options have a special feature for creating javascript confirm alerts where if you pass ":confirm" => 'Are you sure?', the link will be guarded with a JS popup asking that question. If the user accepts, the link is processed, otherwise not.
Example: link_to("Delete this page", array(":action" => "delete", ":id" => $page->id), array(":confirm" => "Are you sure?"))
Generate URL based on current URL and optional arguments
Output a URL with controller and optional action and id. The output URL has the same method, host and TRAX_URL_PREFIX as the current URL. Controller is either the current controller or a controller specified in $options. Action and ID are optionally specified in $options, or omitted. The ':id' option will be ignored if the ':action' option is omitted.