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:
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:
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.
I’ve got some updated code for the require_resource.rb file in there–
this one is much cooler 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
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.