search for: replace_with_effect

Displaying 1 result from an estimated 1 matches for "replace_with_effect".

2006 Jul 20
5
RJS where to put helper method?
Hi, If I want to have helper method for my rjs, where''s the best place to put it? so for example: --- bla.rjs: page.replace_html ... page.visual_effect ... --- somewhere: (currently I put in application_helper.rb) def replace_with_effect(page) page.replace_html ... page.visual_effect ... end --- bla.rjs: replace_with_effect page and is there a way to define the helper so we don''t have to pass the page into the function everytime? thanks, - reynard -------------- next part -------------- An HTML attachment was scrubb...