Lauro Caetano
Lauro Caetano
Thanks for taking a look @russcam. I believe in ~2/3 weeks from now I can start to take a look at the issue again.
I am migrating from 2.0 to 2.1 and got this problem too.
Just found the solution. You can use something like: $form['uc_legalbundle_countrygrouptype[countries]']->setValue(array('ES','PT'));
It should work, because the `new_session_path` is generated by Devise. You can check the code here https://github.com/plataformatec/devise/blob/b8ed2f31608eccb6df6d5bb2e66238d6dfc4bcfc/lib/devise/controllers/url_helpers.rb#L3-27 and here https://github.com/plataformatec/devise/blob/b8ed2f31608eccb6df6d5bb2e66238d6dfc4bcfc/lib/devise/controllers/url_helpers.rb#L48-51 Could you provide a sample app to reproduce this bug?
I got something like https://gist.github.com/laurocaetano/55cf2edd5c08881030c6, but I'm not familiar with this part of the code and maybe I'm missing something.
The solution I mentioned before won't work because `add_module` will only get the `Hash`'s first key. https://github.com/plataformatec/devise/blob/master/lib/devise.rb#L383 @josevalim should we change the `add_module` method to accept more than one key?
Well, it also won't work :cry:, because it will only have access to the routes defined by the module -> https://github.com/plataformatec/devise/blob/master/lib/devise.rb#L392 Discussing with @ulissesalmeida we came up with some solutions:...
@printercu I agree. Just updated https://github.com/plataformatec/devise/wiki/OmniAuth%3A-Overview#using-omniauth-without-other-authentications. Could you take a look? Thanks.
Thanks guys, I'm closing this for now. :heart:
Yes, `TokenAuthenticatable` was removed. You can check this on CHANGELOG.md You can find more information on this blogpost: http://blog.plataformatec.com.br/2013/08/devise-3-1-now-with-more-secure-defaults/