It doesn't matter if Rails is well suited for AI or not. Now, there's less incentive and reasons to use it.
With an agent on a greenfield is when I’m most reliant on a framework for good standards and a clear architecture.
This is one of the things Rails does really well.
No other framework comes close, and telling me that I can have my agents cobble together this same baseline, badly, from a hodgepodge of new code and random libraries is not compelling.