Hopefully someone will step in here and correct me if I make a mistake
here in this explanation....

Hobo will automatically create the dryml for the tabs across the top
of all the pages in pages.dryml.

You might see something like this:

<def tag="main-nav">
  <navigation class="main-nav" merge-attrs>
    <nav-item href="#{base_url}/">Home</nav-item>
    <nav-item with="&Article">Articles</nav-item>
    <nav-item with="&Category">Categories</nav-item>
    <nav-item with="&Post">Posts</nav-item>
  </navigation>
</def>

Which tabs show depend on controller actions and the model
permissions.  In the controller you might see something like:

  auto_actions :all
  or
  auto_actions :all, :except => [ :index, :create ]

If the :index action is not excepted in the controller and you haven't
created one in some other way (if there is another way) then you won't
get the automatic tab. You can override these by definng your own main-
nav tab in application.dryml.

The page that the user sees when they click on the tab is the index
page.  There are automatically generated polymorphic page tags defined
for these in pages.dryml.

The user can override the automatically generated index page by
creating a file app/views/<model_name>/index.dryml

The url for and index page would be http://base_url/<model_name_plural>
like http://myrailssite.com/projects

Other types of pages include show,new and edit pages.  These would
also be automatically generated and can be overridden the same way by
creating show.dryml edit.dryml and new.dryml files in the same
location app/views/<model_name>/

I believe the page you are wanting to change is a show page.  So just
create a show.dryml.

For an example of how this is done look to the agility tutorial Part
4.  http://hobocentral.net/agility-tutorial/










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