<show-page with="&current_user"/> works for me, as long as a valid user 
is logged in.  If nobody's logged in, you get a blank screen.

You can do something like:

<if test="&current_user.is_a? Guest">
   <p> Hello! </p>
</if>
<else>
   <show-page with="&current_user"/>
</else>

There are a couple of better ways of solving this problem.  In your 
front_controller.rb you can put something like:


def index
     if current_user.is_a? Guest
       redirect_to login_url
     else
       redirect_to current_user
     end

Or you can change your map.root entry in config/routes.rb.

cheers,
Bryan


Betelgeuse wrote:
> How can I make front/index.dryml render the show page for the
> acting_user like http://localhost:3000/users/2-foo does for the
> specified user? I tried calling <show-page> in various ways but had no
> success beyond getting a blank page or acting_user not being available
> in the view code.
> 
> Regards,
> Petteri
> > 
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to