[Feature Request] Can we have yes button in Did you mean?

image

I saw a button to run migrations, that excited me. Can we have yes button for did yo mean options so that it might save 2 - 3 seconds of developer time?

4 Likes

Would be cool but “Run Pending Migrations” is done via

ActiveRecord::Tasks::DatabaseTasks.migrate

The “Did you mean?” helpers would have to modify your code base

Check out i_did_mean gem:

It automatically runs the “did you mean” command if there’s only one.

I guess this could be a good starting point for “did you mean [y/n]”

In the above case, we know the exact line of the error so theoretically it could be possible. :slight_smile: