I'm using AS inside of Radiant, and I simply added

 = active_scaffold_includes

into the application.html.haml file (line 18) for Radiant admin.

But I'm deploying on heroku so I have the radiant files expanded out into vendor/radiant in my project. If you have a standard Radiant project, then I think you'll have to do what you said.

AS doesn't seem to interfere with anything else. I can't think of a better way myself.

Wes

On 8/3/10 5:24 AM, swartz wrote:
I'm attempting to extend Radiant's admin with my first attempt at an
extension. I've added the necessary tabs, etc.
I'm trying to use ActiveScaffold (AS) for the extension's controllers.
So far so good. Except...

First stumbling block is how do I use active_scaffold_includes view
helper that comes with AS?
It injects all the necessary CSS and JavaScripts into layouts.

After reading Radiant wiki I found out about include_stylesheet and
include_javascript helpers but these wont help as AS has a whole bunch
of assets being added.

My temporary solution is to copy radiant's application.html.haml and
modify it to include that helper (jsut as conferences extension does).
This works, however I do not like this as it's not DRY enough.

What would be a better way to use actives_scaffold_includes with
Radiant extensions?

Thanks!

Reply via email to