Phil
On Sun, Apr 17, 2011 at 8:47 PM, Nathan Domier wrote:
> Aha! I've figured it out.
>
> In case anyone else is wondering, I have a current_user defined in
> sessions helper, so, I had to include sessionshelper, and set @user =
> current_user!
>
Just in case it helps; if you have a current_u
Aha! I've figured it out.
In case anyone else is wondering, I have a current_user defined in
sessions helper, so, I had to include sessionshelper, and set @user =
current_user!
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Gro
I wanted to pass it the id of the logged in user. I have some things
that I want to show up for some users and not for others. I wanted to
use @user.admin? for this, which works fine on the users pages.
however, since I can't get the @user assignment to work for pages this
isn't working eithe
On Apr 17, 6:26 am, Nathan Domier wrote:
> I realize the title probably doesn't make much sense, but that was the
> best short description I could come up with.
>
> Anyway, I have users and pages in my site, and was using the following
> code in the users controller, which works fine:
>
>
> d
4 matches
Mail list logo