Rails and Fragments
Not seeing an obvious way to create links to
URIs with fragment identifiers, I added the following to my
BlogController
. It appears to work.
Anybody got any better suggestions?
def url_for options = {}, *parameters_for_method_reference fragment = options.delete("#".to_sym) url = super options, *parameters_for_method_reference url += "##{fragment}" if fragment return url end