viatropos/tower — Issue #30: Incorrect template rendered
Author: sjerrys
Created: 2012-03-07 05:09:22+00:00
State: open

if i have this in my app:
/chunks/new
/items/new
/users/new

They are all rendered as the same template (the one I visited first)

Here I found this code at "Tower.View.Rendering._readTemplate(template, prefixes, ext)"

```coffeescript
result = (_base = this.constructor.cache)[_name = "app/views/" + template] || (_base[_name] = this.constructor.store().find({
```

should I change it to:

```coffeescript
path = prefixes?(prefixes+'/'+template):template
result = (_base = this.constructor.cache)[_name = "app/views/" + path] || (_base[_name] = this.constructor.store().find({
```

The rendering is working fine currently after this change.