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

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.rhtmlwhere
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.
[email protected]
604-484-9279

topher,

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

Sean

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. [email protected] wrote:

Im trying to use Share Layouts extension.
end

Validation failed: Title required, Breadcrumb required


Christopher Z.
[email protected]
604-484-9279