|
From: James Adam <james.adam@...>
Subject: Re: RFC: Standardising flash usage amongst Rails applications & generators Newsgroups: gmane.comp.lang.ruby.rails Date: 2005-11-05 16:02:22 GMT (2 years, 34 weeks, 3 days, 17 hours and 1 minute ago) I can't give you a patch right now, but inspecting the code, there's a few things: init.rb, in your requires: "fb" should be "francois_beausoleil" lib/francois_beausoleil/flash_helper/application.rb: the syntax for 'alias' is: alias :new_thing :old_thing, not alias :new_thing, :old_thing (i.e. no comma) Finally, you can't send :include methods to ApplicationController from a plugin's init.rb - the class has yet to be loaded. You can see the warning if you run script/console, rather than script/server. So instead, you'll have to require users to include your modules in their own application.rb/application_helper.rb files.. hope that helps - james On 11/5/05, Francois Beausoleil <francois.beausoleil@...> wrote: > Hi ! > > 2005/11/5, Keegan Quinn <keegan@...>: > > On Fri, Nov 04, 2005 at 03:12:15PM +0000, Luke Randall wrote: > > > :notice for positive feedback (action successful, etc) > > > :message for neutral feedback (reminders, etc) > > > :warning for negative feedback (action unsuccessful, error encountered, etc) > > > > I like this. Got a patch? > > I don't have a patch, I have a plugin instead. Unfortunately, it > doesn't work at the moment. I can't get tests to run, and when I add > the plugin, WEBrick fails silently at startup, with no error messages > :( > > Code can be found here: http://opensvn.csie.org/flash_helper_plugin/trunk/ > > If anybody would be good enough to give me a hand, I'd be very > grateful. I thought I could release that yesterday afternoon, but I > was pressed for time. I'm probably 80% of the way there. > > Project's home page is at: > https://opensvn.csie.org/traccgi/flash_helper_plugin/trac.cgi/ > > Blog article about the plugin: > http://rubyurl.com/pz0 > http://blog.teksol.info/articles/2005/11/05/flash-helper-plugin-flash-standardization > > Thanks for any help you may provide. > > Bye ! > -- > François Beausoleil > http://blog.teksol.info/ > > _______________________________________________ > Rails mailing list > Rails@... > http://lists.rubyonrails.org/mailman/listinfo/rails > > > |
|
|