Guest User

Untitled

a guest
Apr 20th, 2018
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. invite = Invitation.find_by_code(params[:id])
  2. @user = User.new(:email => invite.email)
  3. @user.invitation_code = invite.code
  4.  
  5. CALLS show.rhtml
  6.  
  7. <script type="text/javascript" charset="utf-8">
  8. function pageCallback() {
  9. UtilityPane.show(Templates.Users.signupNewUser(<%= @user.to_json %>))
  10. }
  11. </script>
  12. <%= @user.to_json %>
  13.  
  14. RESULTING json:
  15.  
  16. {"openid_url": null, "nickname": null, "invites": null, "password": null, "email": "uiuiio@iiiio.cc"}
Add Comment
Please, Sign In to add comment