SeanMcTex wrote:
Hi folks,

Still trying to get my head around hobo and how the various bits work
together for my learning project. I have a couple of questions, mostly
to do with my CAS integration (which, for the most part, works very
nicely -- thanks Bryan for posting that filter!)

1. I expect this is super-easy, but how to I remove the Tab in the
navigation for the front controller? My first instinct was to commend
out the index definition in front_controller, but that didn't make any
difference. I then tried script/destroy controller front, but that
left things rather a mess.

Actually, there's no magic way to do this. The generated main-nav always contains a "Home" link. The generated main-nav is nice when you're starting, but by the time you deploy, 99% of all Hobo apps have a custom main-nav.

See http://cookbook.hobocentral.net/tutorials/agility#breaking-out-of-the-box for an example.


2. How does one turn off the user picker, account management, and
logout links along the top? Since I'm using CAS login, they're not
really necessary for my purposes.

<extend tag="page"
  <old-page merge without-account-nav>
    ...


3. Is there a way to let the admin administer accounts directly from
within the application? Removing the exceptions from auto_actions
seemed the right thing to do, but there's still no way in the UI to
add a new user. Going directly to the RESTful URL doesn't work either
-- I just get a screen that says "New User" at the top of the content
area with no other content. I tried replacing hobo_user_controller
with hobo_model_controller, but the behavior remained the same.


There are several ways of doing this.   Here's one:

add a new creator to the user lifecycle:

    create :create_new, :available_to => "Users.administrators", ...

Then add a link somewhere:

    <a href="&user_create_new_path">Create a new user.</a>

Thanks for any help!

Best,
Sean


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