def form_for_resource(*args, &block)
      options = args.extract_options!
      resource = args[0] || self.resource
      form_for(resource, form_for_resource_options(resource, resource_name, options), &block)
    end
def form_for_resource(*args, &block)
      options = args.extract_options!
      resource = args[0] || self.resource
      form_for(resource, form_for_resource_options(resource, resource_name, options), &block)
    end
DEPRECATED: you should just be able to use <tt>form_for resource</tt>

 Calls form_for with the apropriate action and method for the resource

 resource.new_record? is used to decide between a create or update action

 You can optionally pass a resource object, default is to use self.resource

 You may also override the url by passing <tt>:url</tt>, or pass extra options
 to resource path url with <tt>:url_options</tt>

 === Example

   <% form_for_resource do |f| %>
     <%= f.text_field :name %>
     <%= f.submit resource.new_record? ? 'Create' : 'Update'
   <% end %>

   <% for attachment in resources %>
     <% form_for_resource attachment, :html => {:multipart => true} %>
       <%= f.file_field :uploaded_data %>
       <%= f.submit 'Update' %>
     <% end %>
   <% end %>