1602/express-on-railway — Issue #124: Instance Variable with name 'user' not getting set
Author: premjg
Created: 2012-02-23 15:25:56+00:00
State: open

This is my controller action

```javascript
.....
action 'edit', ->
@user = {first_name: 'Mr Awesome'}
@title = "Edit User: #{@user.first_name}"
render()
.....
```

My View

```jade
.....
.page-header
h1 #{title}
h2 #{user}
.....
```

I get an error on h2 in the logs. Mysteriously the 'title' variable gets transferred to the view without any issues.

```javascript
.....
Cannot read property 'first_name' of undefined
.....
```

The moment I change the name of the variable to @user1, everything works fine.

Any idea how to debug it?