def actions(*available_actions)
      # FIXME HACK
      # made all methods private, so plural?, too.
      # Did not want to make an exception for that and i do not like it to
      # come up on actions_methods.
      # TODO: maybe we can define plural? as class_method
      if available_actions.first == :all
        if controller.respond_to?(:new_without_capture)
          available_actions = controller.new_without_capture.send(:plural?) ? ACTIONS : SINGULAR_ACTIONS
        else
          available_actions = controller.new.send(:plural?) ? ACTIONS : SINGULAR_ACTIONS
        end
      end

      available_actions.each { |action| @ok_actions << action.to_sym }
    end
def actions(*available_actions)
      # FIXME HACK
      # made all methods private, so plural?, too.
      # Did not want to make an exception for that and i do not like it to
      # come up on actions_methods.
      # TODO: maybe we can define plural? as class_method
      if available_actions.first == :all
        if controller.respond_to?(:new_without_capture)
          available_actions = controller.new_without_capture.send(:plural?) ? ACTIONS : SINGULAR_ACTIONS
        else
          available_actions = controller.new.send(:plural?) ? ACTIONS : SINGULAR_ACTIONS
        end
      end

      available_actions.each { |action| @ok_actions << action.to_sym }
    end
:call-seq:
   actions(*available_actions)
   actions :all

 Adds the default RESTful actions to the controller.

 If the only argument is <tt>:all</tt>,
 adds all the actions listed in Resourceful::ACTIONS[link:classes/Resourceful.html]
 (or Resourceful::SINGULAR_ACTIONS[link:classes/Resourceful.html]
 for a singular controller).

 Otherwise, this adds all actions
 whose names were passed as arguments.

 For example:

   actions :show, :new, :create

 This adds the +show+, +new+, and +create+ actions
 to the controller.

 The available actions are defined in Default::Actions.