Engines and Edge Rails / Rails 1.1

Since 1.1 is on the horizon, I’d just like to remind everyone that if
they’re playing with Edge Rails, they need to be using the SVN trunk
version of the engines plugin. Detailed instructions are on the wiki:

http://rails-engines.org/wiki/pages/Using+Engines+with+Edge+Rails

Good luck, and please please please give me a hand checking for bugs!

  • james

  • J *
    ~

On Feb 26, 2006, at 3:40 PM, James A. wrote:

Since 1.1 is on the horizon, I’d just like to remind everyone that if
they’re playing with Edge Rails, they need to be using the SVN trunk
version of the engines plugin. Detailed instructions are on the wiki:

http://rails-engines.org/wiki/pages/Using+Engines+with+Edge+Rails

Good luck, and please please please give me a hand checking for bugs!

  • james

Hi James,

Should we expect to see the bundled resource functionality built in
to the 1.1 release, or is that further on the horizon?

Thanks for all the great work you’re doing on this!

Duane J.
(canadaduane)
http://blog.inquirylabs.com/

Just upgraded, works great.

Had to read the fine print, where it said that the new config option
needed
to go at the VERY top of the environment.rb, but other than that it
worked
great.

-Nb

 Nathaniel S. H. Brown                           http://nshb.net

Hi Duane,

I’m definitely hoping to see your patch included very soon :slight_smile:

  • james

On 2/27/06, Duane J. [email protected] wrote:

Hi James,

Should we expect to see the bundled resource functionality built in
to the 1.1 release, or is that further on the horizon?

Thanks for all the great work you’re doing on this!

Duane J.
(canadaduane)
http://blog.inquirylabs.com/

  • J *
    ~

Super! Thanks for the update, James.

I’ve got some updated code for the require_resource.rb file in there–
this one is much cooler :slight_smile: It respects the class hierarchy and
autoincludes javascripts and stylesheets according to the sensible
convention of having modules in your javascripts/ and stylesheets/
folders. Just drop in replace the old file with this file (no patch,
sorry–I hope that’s ok).

For example:

Let’s say that:
class Admin::UserController < Admin::BaseController
class Admin::DashboardController < Admin::BaseController

Now we create an ‘admin’ folder inside stylesheets and add base.css:

#{RAILS_ROOT}/public/stylesheets/admin/base.css

Now, views from both the UserController and DashboardController
classes will pick up the new base.css and have it included
automatically.

On Feb 27, 2006, at 2:44 AM, James A. wrote:

Hi Duane,

I’m definitely hoping to see your patch included very soon :slight_smile:

I’m hoping that your “hoping” means that you’re not expecting me to
have subversion write access… because I don’t. Just to be clear,
you’ll be the one to apply the patch, right?

Duane