-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
omniauth_success.html.erb JSON bug #221
Comments
You could override this view with something like:
Then you'd just need to make sure that your override view is rendered in
Hope this helps. |
ahhh, good idea :) thanks! |
Here is a more general solution, which worked for me with array values as well:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I realized that, in the current way omniauth_success.html.erb is written (copied below), the JSON returned gives booleans and numbers as strings, e.g. "false", rather than false or "5" rather than 5. This gave me some problems cause I use coffeescript, which only supports the === or !== equalities which means that "5" !== 5. Any way to fix this easily?
The text was updated successfully, but these errors were encountered: