[typo] 4.1 progress

Steve Longdo steve.longdo at gmail.com
Fri Aug 18 10:30:42 EDT 2006


Edge rails has support for adding named routes from a plugin so moving the
controllers out to plugin land is viable.

http://www.nabble.com/Re%3A-Plugin-Routes-p5856460.html


On 8/18/06, Piers Cawley <pdcawley at bofh.org.uk> wrote:
>
> "Scott Laird" <scott at sigkill.org> writes:
>
> > It should be possible.  I think Piers has something clever planned for
> > sidebars, but I'm not quite sure what it is yet .
>
> Well, you say planned. Currently the plan goes:
>
> 1.  Write a bunch of tests for a few sidebars.
> 2.  Refactor like mad 'til the sidebars have identical controllers and
>     all the behaviour is stashed in the model and the view.
> 3.  Merge the controllers.
> 4.  Pull the controller behaviour up into a set of helper methods.
> 5.  Eliminate the controllers.
> 6.  Work out how the heck to render a view from vendor/plugins (hey, if
>     we can monkey patch rails to make themes work, we should be able to
>     do something similar for sidebars)
> 7.  Push a few sidebars out to their own plugins directories.
> 8.  Write a generator for a sidebar
> 9.  Err...
> 10. That's it.
>
> I'm at the beginnings of step 2 at the moment. The meta methods,
> 'description' and 'setting' have moved from the controller to the
> sidebar model (Sidebar now gets subclassed for every sidebar) where,
> frankly, they make more sense.
>
> --
> Piers Cawley <pdcawley at bofh.org.uk>
> http://www.bofh.org.uk/
> _______________________________________________
> Typo-list mailing list
> Typo-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/typo-list
>



-- 
Thanks,
-Steve
http://www.stevelongdo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/typo-list/attachments/20060818/2d10a858/attachment.html 


More information about the Typo-list mailing list