Without any code it’s hard to guess. Maybe the meta data is wrong or App.TaskManager.touch(@taskKey)
is missing?
Here is a simple example of the profile page:
http://127.0.0.1:3000/#example/profile/2
http://127.0.0.1:3000/#example/profile/3
http://127.0.0.1:3000/#example/profile/4
app/assets/javascripts/app/controllers/example_profile.coffee
class App.ExampleProfile extends App.Controller
@requiredPermission: ['ticket.agent']
constructor: (params) ->
super
@render()
meta: =>
meta =
url: @url()
id: @user_id
head: "example #{@user_id}"
title: "example #{@user_id}"
active: true
iconClass: 'user'
meta
url: =>
'#example/profile/' + @user_id
show: =>
@navupdate(url: '#', type: 'menu')
render: (user) =>
@html "test #{@user_id}"
class Router extends App.ControllerPermanent
@requiredPermission: ['ticket.agent']
constructor: (params) ->
super
# check authentication
@authenticateCheckRedirect()
# cleanup params
clean_params =
user_id: params.user_id
App.TaskManager.execute(
key: "Example-#{@user_id}"
controller: 'ExampleProfile'
params: clean_params
show: true
)
App.Config.set('example/profile/:user_id', Router, 'Routes')