Skip to content

Cannot effectively link to a method in the same class #61

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
alanhogan opened this issue Aug 16, 2011 · 2 comments
Closed

Cannot effectively link to a method in the same class #61

alanhogan opened this issue Aug 16, 2011 · 2 comments
Labels

Comments

@alanhogan
Copy link

Given code like:

class FooController < ApplicationController

  # The intention here is to detect any problems with the requested URL before
  # it is loaded in an iframe (see FooController#preview).
  def preview_init
    # work... 
  end

  # This fetches a remote page and prepares it for viewing in an iframe.
  def preview
    # work...
  end
end

The outputting documentation for default_init will indeed link to FooController#preview, but clicking it merely expands the source for preview_init.

It seems that the click handler needs to check to see if the event.target is actually a link, in which case it should not do anything, and allow the default action to proceed.

@drbrain
Copy link
Member

drbrain commented Sep 24, 2011

Fixed!

@drbrain drbrain closed this as completed Sep 24, 2011
@alanhogan
Copy link
Author

Cheers, @drbrain. Thanks for fixing this!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Development

No branches or pull requests

2 participants