module IssueSubmitInformationPatch
    def self.included(base)
        base.send(:include, InstanceMethods)
        base.class_eval do
            alias_method_chain :create, :issue_link
        end
    end

    module InstanceMethods

        def create_with_issue_link
            without = create_without_issue_link
            flash[:notice] = l(:notice_successful_issue_create, link_to_issue(@issue, :project => @project))
            return without
        end
    
    end
end 

module IssueSubmitInformationPatch
    def self.included(base)
        base.send(:include, InstanceMethods)
        base.class_eval do
            alias_method_chain :create, :issue_link
        end
    end

    module InstanceMethods

        def create_with_issue_link
            without = create_without_issue_link
            flash[:notice] = l(:notice_successful_issue_create, self.class.helpers.link_to_issue(@issue, :project => @project))
            return without
        end
    
    end
end 

Resolve reference to link_to within controller.
Resolve reference to link_to within controller.

There seems to be some indications that using "link_to" within a
controller within a controller is bad practice. Most indications seem to
be that you could hand-roll the HTML yourself (a thousand times worse,
in my opinion), render a partial (which I don't know how to do), or just
leave the link_to for views.

However, outside of extending this to include a new view which is then
rendered and passed in to the flash notice, I think this is the quickest
and sanest option.

If it actually works!

Ref: http://blog.lrdesign.com/2009/05/using-link_to-or-other-helper-methods-in-a-controller/
