Nevermind. I wound up going the route of alias_method_chain-ing
SiteController's #show_page method. It makes things more tightly
coupled to Radiant but it's also closer to how it'd be if built-in.
If anybody else out there is already using alias_method_chain on this
method in your extension,
Chris Parrish wrote:
> Nevermind. I wound up going the route of alias_method_chain-ing
> SiteController's #show_page method. It makes things more tightly
> coupled to Radiant but it's also closer to how it'd be if built-in.
>
> If anybody else out there is already using alias_method_chain on thi
Actually, I was just thinking about using a before filter too. I hate
being so obtrusive with alias_method_chain, but I'm not sure a
before_filter will work.
The job I'm trying to do here is find and render css and js files and,
if the file's not found, let SiteController try to render it as
I've made about 5 websites with radiant so far and I guess most of
them I just started with a simple blog or empty. Today I started with
the more filled in version and discovered how this sidebar page part
is being used. It's brilliant! Really. I've been using snippets to
attempt the sam
Chris Parrish wrote:
> My question was originally tied to approach #1. I could use a Rake task
> to change the "javascript_directory" but couldn't get the
> already-running server to reload its routes.
>
> Now I'm working on having an augmented SiteController#show_page action
> process the whole
Hmm. Will give that a whirl then. I'll let you know. Thanks.
-Chris
Alex Wayne wrote:
Chris Parrish wrote:
My question was originally tied to approach #1. I could use a Rake task
to change the "javascript_directory" but couldn't get the
already-running server to reload its routes.
Now