Module Kwartz::Helper::ActionViewHelper
In: kwartz/helper/rails.rb

helper module to add helper methods ‘start_link_tag()’ and ‘start_remote_link_tag()’.

Methods

Public Instance methods

anchor(options={}, html_options=nil, *parameters)

Alias for start_link_tag

anchor_remote(options={}, html_options={})

return ’<a href="…">’ start tag.

ex.

  start_link_tag :action=>'show', :controller=>'user', :id=>1
  #=> "<a href=\"/user/show/1\">"

[Source]

# File kwartz/helper/rails.rb, line 385
      def start_link_tag(options={}, html_options=nil, *parameters)
        s = link_to('', options, html_options, *parameters)
        s.sub!(/<\/a>\z/, '')
        s
      end

ajax version of start_link_tag()

[Source]

# File kwartz/helper/rails.rb, line 394
      def start_remote_link_tag(options={}, html_options={})
        s = link_to_remote(options, html_options)
        s.sub!(/<\/a>\z/, '')
        s
      end

[Validate]