def find_parent(args = {})
        ignore = args.delete(:ignore) || []
        ignore.flatten!
        params.each do |name, value|
          if name =~ /(.+)_id$/
            if !ignore.include?($1)
              if args.has_key?(:scope)
                return $1.classify.constantize.find(value, :scope => args[:scope])
              else
                return $1.classify.constantize.find(value)
              end
            end
          end
        end
        nil
      end
def find_parent(args = {})
        ignore = args.delete(:ignore) || []
        ignore.flatten!
        params.each do |name, value|
          if name =~ /(.+)_id$/
            if !ignore.include?($1)
              if args.has_key?(:scope)
                return $1.classify.constantize.find(value, :scope => args[:scope])
              else
                return $1.classify.constantize.find(value)
              end
            end
          end
        end
        nil
      end
Searches the params to try and find an entry ending with _id
 ie article_id, user_id, etc.  Will return the first value found.
 parameters:
 scope:  Friendly id can require a scope to find the object.  Pass the scope as needed.
 ignore: Names to ignore.  For example if the url is /foo/1/bar?thing_id=1
         you might want to ignore thing_id so pass 'thing' to be ignored.