Closed yshmarov closed 9 months ago
Thank you! This sounds like a genuine bug. I'll look into it when I have a little time to spare
I am experiencing these issues as well. The fix for the paths missing the _ is easy enough (happy to submit a pr). However if you set as:
to something other than :users
it still generates the urls with users
in them. This seems to be a deeper rooted issue.
So as far as I can tell, as:
just doesn't work.
Made a PR. I think it'll fix your problems. If you can, please give it a go and let me know if it fixes your problems.
first of all, congrats on releasing
1.0.0
! 🥳 I really love the new "token input" form.I just tried upgrading my app to 1.0.0, and faced a few challenges:
Now,
passwordless_for :users, at: '/', as: :auth
generates:(it loses the
_
)I remove the
as: :auth
, and change it topasswordless_for :users, at: '/'
. Now the routes look like this:However now the tests are failing on
passwordless_sign_in(@user)
: