You might want to look at lifecycles and how hobo does the user model.  It 
doesn't have a direct create (other than for the first user), instead uses 
a lifecycle creator.  Even if a creator isn't the best approach, you might 
want to tie in the creation to a transition on another model.  Without your 
use case, I can't recommend one over the other.

On Monday, June 29, 2015 at 4:29:05 PM UTC-6, Michael B wrote:
>
>
> I apologize for whatever goofy mistake I'm making...
>
> I have a situation where the model instance is created behind the scenes, 
> so a "new" button is not appropriate.
> The user has rights to create it but indirectly, so suppressing the 
> permissions is not the right thing to do.
> I tried to paste the auto-generated index page for the model into 
> front_site.dryml commenting out the button there but it seems to be defined 
> elsewhere.
>
>
> Thanks for any help.
> Regards,
> Michael Bonnet.
> ------------ front_site.dryml ---------------------------
> <include gem="hobo_rapid"/>
> <include gem='hobo_jquery'/>
> <include gem='hobo_bootstrap'/>
> <include gem='hobo_jquery_ui'/>
> <include gem='hobo_bootstrap_ui'/>
>
> <include src="taglibs/auto/rapid/cards"/>
> <include src="taglibs/auto/rapid/pages"/>
> <include src="taglibs/auto/rapid/forms"/>
>
> <include src="hobo-metasearch"/>
>
> <include src="company-tags"/>
> <include src="application"/>
>
> <def tag="index-page" for="Download">
>   <page merge title="#{ht 'download.index.title', 
> :default=>[model.model_name.human(:count=>100)] }">
>     <body: class="index-page download" param/>
>
>     <content-header: param>
>       <h2 param="heading">
>         <ht key="download.index.heading">
>           <model-name-human model="&model"/>
>         </ht>
>       </h2>
>
>       <p param="count" if>
>         <ht key="download.collection.count" count="&collection_count">
>           <count summary/>
>         </ht>
>       </p>
>     </content-header:>
>
>     <content-body: param>
> <!--
>       <a action="new" to="&model" param="new-link">
>         <ht key="download.actions.new">New Download</ht>
>       </a>
> -->
>
>       <page-nav param="top-page-nav"/>
>
>       <collection param/>
>
>       <page-nav param="bottom-page-nav"/>
>
>
>     </content-body:>
>   </page>
> </def>
> ----------------- app/views/downloads/index.dryml -------------------------
>
> <index-page without-live-search without-page-nav>
>
>   <collection: replace>
>     <table-plus without-page-nav fields="name, report_type, status, 
> file_expiry_time"/>
>   </collection:>
>
> </index-page>
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to