search for: controller_help

Displaying 2 results from an estimated 2 matches for "controller_help".

Did you mean: controller_helper
2008 Mar 03
0
A kind of monkey patch and an invitation for criticism for all you (who know this stuff better than I do)
...799 But I wanted to generalize this a little to automatically include whatever helper modules are included in the views. So I dreamt up 35 lines of goodness: class Object def metaclass; class << self; self; end; end end module ActionController class Base class_inheritable_accessor :controller_helper_module class_inheritable_accessor :controller_helper_object self.controller_helper_module = Module.new self.controller_helper_object = Object.new class << self def add_template_helper_with_controller_helper(helper_module) self.controller_helper_module.send(:in...
2006 Jan 08
2
sorting tables by columns
What I''m trying to do is have clickable column headers that will sort the table by that column. What I have below works, except there is only one variable storing the sort direction for all the columns, whereas I need a separate one for each column name. list view: <th><%= link_to ''Category'', :action => ''list'', :order =>