myexperiment-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Myexperiment-discuss] Get username & store endpoint


From: Linde, A.E.
Subject: Re: [Myexperiment-discuss] Get username & store endpoint
Date: Thu, 6 Nov 2008 16:05:45 +0000

And so did that :)

I’ll have to come back to how to change the user table. I think it is worth putting this on your radar as I’m sure I won’t be the only one wanting to use myExperiment who’ll need database changes/additions.

Cheers,
Tony.


On 06/11/2008 09:40, "Jiten Bhagat" <address@hidden> wrote:

> 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).


--
Tony Linde
Project Manager
Department of Physics & Astronomy
University of Leicester

reply via email to

[Prev in Thread] Current Thread [Next in Thread]