Hi, I'm new on the forum. I've a simple custom page : class MyPage < Page # end I want to set the page attributes (title, description, keywords). I try this code : tag.locals.page.title = "hello my page" or Page.title = "hello my page" but is not good. Anyone can help me ? Thk Alessandro
on 2010-06-10 16:31
on 2010-06-11 10:26
Alessandro Ale wrote: > Hi, > > I'm new on the forum. > > I've a simple custom page : > > class MyPage < Page > > # > end > > I want to set the page attributes (title, description, keywords). > I try this code : > tag.locals.page.title = "hello my page" > or > Page.title = "hello my page" > > but is not good. > > Anyone can help me ? > > Thk > Alessandro Hi, i think that i've found a solution : class MyPage < Page attr_accesstor :title def title #something end end Bye
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.