on 2007-02-21 08:44
on 2007-02-21 17:33
on 2007-02-21 17:48
on 2007-02-21 17:58
Jodi Showers wrote: > why not use the layout for this controller? That makes sense. So now since application.rhtml is not used, the best practice would be to create partials for the header and footer information that was previously displayed via application.rhtml ?
on 2007-02-21 18:33
on 2007-02-21 20:43
On Feb 21, 11:58 am, "Tim W." <rails-mailing-l...@andreas-s.net> wrote: > Posted viahttp://www.ruby-forum.com/. or you could have the application layout check the controller name, and return the JS include. This is probably a good use for a helper - < %= get_JS(controller.controller_name) %> I'd likely tackle by that means - the application helper might even have scope to access the controller object, so your call would just be "get_JS"
on 2007-02-21 22:54
> I'd likely tackle by that means - the application helper might even > have scope to access the controller object, so your call would just be > "get_JS" cheers. that'll work.
on 2007-02-22 00:12
On 2/22/07, Chris Scott <email@example.com> wrote: > name as the rails controller. it's like a client-side agent of the > controller. > > eg: > InventoryController.rb < ApplicationController > > ... > > InventoryController.js I wrote a plugin a while ago just for this. You can find details for it at http://www.agilewebdevelopment.com/plugins/resourc... Hopefully it will do what you're after
on 2007-02-22 00:29
> Hopefully it will do what you're after exactly. ensures no duplicates. perfect, thanks.
on 2007-02-22 13:09