Vote count:
0
Why is @username non-existent or unavailable at
get '/user/:username' do puts @username 'hello' end
It's an instance variable so I assumed it'd be accessible at the point of the puts. However, it's not printing to the console. What's a better/working way?
asked 33 secs ago
@username is non-existent or unavailable
Aucun commentaire:
Enregistrer un commentaire