[Radiant] Error in scaffolding Page
Mohit Sindhwani
tech at onghu.com
Fri Nov 2 10:17:57 CDT 2007
Hi Sean,
Thanks for the quick reply. I was just looking at whether I should add
that using some of the techniques in the PageAttachment extension. This
certainly look simpler, but I'm sorry I don't know where this should go.
Sorry for the trouble :-S
Cheers,
Mohit.
11/2/2007 | 11:17 PM.
Sean Cribbs wrote:
> Mohit,
>
> It might be easier to add a datetime selector to the page edit
> screen. I would do it like this:
>
> Admin::PageController.class_eval do
> before_filter :add_published_at_meta
>
> def add_published_at_meta
> @meta ||=[]
> @meta << {:field => "published_at", :type => "datetime_select"}
> end
> end
>
> Cheers,
>
> Sean
>
More information about the Radiant
mailing list