M
Mark Probert
Hi,
Another IOWA issue but more likely, a "me" issue.
I have a header than contains the code:
Logged in as: @user<br/>
I have a LeftNav panel that includes
def foo_page
'/foo' # mapfile.conf --> /foo: Run::Foo
end
'foo' includes the LeftNav and the header. However, I am not sure of how
to pass @user via the LeftNav. If I change LeftNav to:
def foo_page
newPage = page_named("Run::Foo")
newPage.user = @user
yield newPage
end
I get an error
<a href="
no block given
(eval):39:in `credit_page'
Any ideas on how to pass the @user to the LeftNav?
BTW, @user is correctly defined and available LeftNav.
Many thanks,
Another IOWA issue but more likely, a "me" issue.
I have a header than contains the code:
Logged in as: @user<br/>
I have a LeftNav panel that includes
def foo_page
'/foo' # mapfile.conf --> /foo: Run::Foo
end
'foo' includes the LeftNav and the header. However, I am not sure of how
to pass @user via the LeftNav. If I change LeftNav to:
def foo_page
newPage = page_named("Run::Foo")
newPage.user = @user
yield newPage
end
I get an error
<a href="
no block given
(eval):39:in `credit_page'
Any ideas on how to pass the @user to the LeftNav?
BTW, @user is correctly defined and available LeftNav.
Many thanks,