The point Matt was making was to remove the new-page def from
application.dryml entirely.  The only reason to do something like that
is if you plan on using the page in more than one place (unlikely for
a new-page but possible for show or index maybe).

If you don't define a specific page for new-page, it uses the default
one.  By defining a blank new-page, there is no parameters to replace
and no page really to replace.  Make sense?

On Nov 2, 2:41 pm, tom <[email protected]> wrote:
> argh. im trying to follow drafts#6, figure#78 where u guys have an example
> with the index-page.
>
> so, having the new-page def in application like:
> <def tag="new-page" for="CountSheetHeader">
>     <page merge title="New Count Sheet Header">
>     <body: class="new-page count-sheet-header" param/>
>
>     <content: param>
>       <section param="content-header">
>         <h2 param="heading">New Count Sheet Headersss</h2>
>       </section>
>
>       <section param="content-body">
>         <form param>
>           <submit: label="Create Count Sheet Header"/>
>
>         </form>
>       </section>
>
>     </content:>
>   </page>
> </def>
>
> and calling
> <new-page/>
> within the new.dryml works fine.
>
> but, and i think thats the purpose og doing so (the rails-mvc) way, i want
> to have that stuff in the new-view.
> 1) just leaving the def-tag like:
> <def tag="new-page" for="CountSheetHeader">
> </def>
> in the application.dryml and having
> whatever was betwenn the tags end up in erroring in params-issue. if i
> replace then the params with class (as the drafts-book), it tells me
> something about
>
> undefined method `attributes' for #<ActionView::Base:0xb5c59440>
>
> Extracted source (around line *#1*):
>
> 1:  <page merge title="New Count Sheet Header">
> 2:     <body: class="new-page count-sheet-header" />
> 3:
>
> ....
>
> so, i guess i dont know what needs to stay in application.dryml...
> can u guys add ONE superminimal example of how to "export" the CRUD
> functionlaty into its own views? i think that would be helpful
>
> thx
>
> 4:     <content: >
--~--~---------~--~----~------------~-------~--~----~
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