diff --git a/rails.el b/rails.el
index b4a8c73..6028f7a 100644
--- a/rails.el
+++ b/rails.el
@@ -90,7 +90,7 @@ Emacs w3m browser."
   :group 'rails
   :type 'boolean)

-(defcustom rails-tags-command "ctags -e -a --Ruby-kinds=-f -o %s -R %s"
+(defcustom rails-tags-command "ctags -e -a --langdef=erb --langmap=rhtml:.rhtml.rjs.erb.rxml --exclude=doc/api --Ruby-kinds=-f -o %s -R %s"
   "Command used to generate TAGS in Rails root"
   :group 'rails
   :type 'string)
