Update:
it seems like if the field is called "name" it will display there, so
the question is how to get the model name to not display as well.
I believe it is in pages.dryml
<def tag="show-page" for="Recipe">
<page merge title="#{ht
'recipe.show.title', :default=>['Recipe'] }">
<body: class="show-page recipe" param/>
<content: param>
<header param="content-header">
<h2 param="heading">
<ht key="recipe.show.heading" name="&this.respond_to?
(:name) ? this.name : ''">
<name/>
</ht>
</h2>
I just dont know how to edit that correctly to make it look like it
does in the tutorials.
On Mar 15, 9:45 am, simple_n00b <[email protected]> wrote:
> Doing tutorial 7 of the rails 3 draft (I skipped to it so may have
> missed something in an earlier tutorial).
> On my "recipes" index page, clicking on one of the recipes I have
> entered goes to a show page where the heading says "Recipe" (the name
> of the model) rather than the title of that entry as is shown in the
> screenshots for the tutorial.
>
> For example licking "Omelette" on my index page brings up a show page
> with the heading "Recipe" followed by the omelette ingredients and
> selected country. I would expect to see the word "Omelette" rather
> than the word "Recipe"
>
> Also in tutorial 3, adjusting the recipe.rb model with
> def name
> "My Custom Name = " + title
> end
>
> displays:
>
> Recipe My Custom Name = Omelette
>
> So the model name remains in the heading even when using def name.
--
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.