def navigation_behavior(error)
      if get?
        raise error
      elsif has_errors? && default_action
        render rendering_options
      else
        redirect_to navigation_location
      end
    end
def navigation_behavior(error)
      if get?
        raise error
      elsif has_errors? && default_action
        render rendering_options
      else
        redirect_to navigation_location
      end
    end
This is the common behavior for formats associated with browsing, like :html, :iphone and so forth.