# Share Layouts extension gives error "Validation failed: Title required.."

**URL:** <https://www.ruby-forum.com/t/share-layouts-extension-gives-error-validation-failed-title-required/117148>\
**Category:** Radiant CMS\
**Created:** [October 13, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/share-layouts-extension-gives-error-validation-failed-title-required/117148 "2007-10-13T22:21:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![topherzee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f1d935/32.png) [@topherzee](https://www.ruby-forum.com/u/topherzee)\
**Post date:** [October 13, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/share-layouts-extension-gives-error-validation-failed-title-required/117148/1 "2007-10-13T22:21:52Z")

</div>

Hi,  
Im trying to use Share Layouts extension.  
I dont know how to specify the Breadcrumb and Title for the page.  
Ive created a simple extension controller

class TesterController \< ApplicationController  
@Breadcrumb = “some breadcrumbs”  
@Title = “My Page”  
radiant\_layout ‘Henry Standard’  
def index  
@slideshows = Slideshow.find(:all)  
end  
end

And ive also tried putting the  
@Title assignments in the index.rhtml template.

I read the readme, but still dont understand how to set the Title,  
Breadcrumb for the page.  
Im probably missing something simple due to my relative nuby-on-rails  
nature!  
Any help or tips appreciated!

The error I get is:

ActiveRecord::RecordInvalid in Tester#index

Showing  
_vendor/extensions/share\_layouts/app/views/layouts/radiant.rhtml_where  
line  
_#1_ raised:

Validation failed: Title required, Breadcrumb required

Extracted source (around line _#1_):

1: \<%= radiant\_layout %\>

RAILS\_ROOT: C:/A\_SYST~1/INSTAN~1.7-W/rails\_apps/henry\_radiant2/config/…

Cheers, topher

–  
Christopher Z.  
removed\_email\_address@domain.invalid  
604-484-9279

---

<div class="post-metadata">

**Author:** ![topherzee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f1d935/32.png) [@topherzee](https://www.ruby-forum.com/u/topherzee)\
**Post date:** [October 13, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/share-layouts-extension-gives-error-validation-failed-title-required/117148/2 "2007-10-13T22:44:43Z")

</div>

topher,

Those instance variables are all lowercase. You should set them inside  
a method/action too, not outside, or in a before filter.

Sean

---

<div class="post-metadata">

**Author:** ![topherzee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f1d935/32.png) [@topherzee](https://www.ruby-forum.com/u/topherzee)\
**Post date:** [October 13, 2007, 11:30pm UTC](https://www.ruby-forum.com/t/share-layouts-extension-gives-error-validation-failed-title-required/117148/3 "2007-10-13T23:30:56Z")

</div>

Excellent!  
That is a very handy extension.  
Thank you.

-topher

Yes, this works

class TesterController \< ApplicationController

```
radiant_layout 'Henry Standard'

def index
   @breadcrumb = "tester"
   @title = "Tester"
end

```

end

On 10/13/07, Sean C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Im trying to use Share Layouts extension.  
> > end
> > 
> > Validation failed: Title required, Breadcrumb required

–  
Christopher Z.  
removed\_email\_address@domain.invalid  
604-484-9279
