def index_for_actions object, *action_names, &block
      html_options = action_names.extract_options!
      action_names = [:show, :edit, :destroy] if action_names == [:all]

      builder = html_options[:action_builder] || IndexFor::ActionBuilder
      builder = builder.new(object, html_options, self)

      content = capture(builder) do |a|
        action_names.map do |action_name|
          a.action_link action_name
        end.join.html_safe
      end

      content += capture(builder, &block) if block

      content
    end
def index_for_actions object, *action_names, &block
      html_options = action_names.extract_options!
      action_names = [:show, :edit, :destroy] if action_names == [:all]

      builder = html_options[:action_builder] || IndexFor::ActionBuilder
      builder = builder.new(object, html_options, self)

      content = capture(builder) do |a|
        action_names.map do |action_name|
          a.action_link action_name
        end.join.html_safe
      end

      content += capture(builder, &block) if block

      content
    end
Create action links and yields a builder.

 Example:

   index_for_actions @user do |a|
     a.action_link :show
     a.action_link :edit
   end

   index_for_actions @user, :show, :edit