teamspaces / web

Web & API – Spaces is knowledge management for teams.
0 stars 0 forks source link

Undefined method `current_team` on `/create_team` #280

Closed emmanuelmillionaer closed 7 years ago

emmanuelmillionaer commented 7 years ago

@karluxd got this error:

undefined local variable or method `current_team' for #<#<Class:0x00000003e13388>:0x00000003e07a60>
Did you mean?  current_page?

    <% if user_signed_in? %>
      drift.identify(<%= current_user.id %>, <%= { name: current_user.name, email: current_user.email, subdomain: current_team&.subdomain, companyId: current_team&.id }.to_json.html_safe %>);
    <% end %>

    (function() {

on: http://what.lvh.me:5510/create_team