|
From: | Linde, A.E. |
Subject: | Re: [Myexperiment-discuss] Get username & store endpoint |
Date: | Thu, 6 Nov 2008 16:05:45 +0000 |
> Many thanks, Jits: that worked.
Great :-)
>
> One more question: in workflows/_table.rhtml, I want to refer to the
> username of the person logged in so as to construct the endpoint for
> storing their RDF claims: how might I do this?
You can use the current_user variable which is available in all views.
If you're using it to get the username you will need to first check if
the user is logged in. So, for example:
Name: <%= current_user.name if logged_in? -%>
(or using current_user.username in your case).
[Prev in Thread] | Current Thread | [Next in Thread] |