search for: sub_list

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

2005 Dec 30
1
metaprogramming in controller: accessing instance variables
Hi all, I''m trying to move a bunch of methods out of a controller into a library that I can include and call a class method to have it dynamically add a bunch of methods to the controller. The goal is to just add to each controller: include UIEnhancements::SubList sub_list ''Note'', ''incomplete'' and have the sub_list method create all the methods needed to support the sub_list ui.. Where I am running into trouble is that I want the meta-programmed functions to have access to the instance vars (ie: @somethingorother or @params...
2006 May 26
0
Hellp needed with sublist plugin
...:/Programmeren/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1354:in `initialize_without_callbacks'' E:/Programmeren/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/callbacks.rb:236:in `initialize'' #{RAILS_ROOT}/vendor/plugins/sublist/sub_list/lib/sub_list_system.rb:44:in `initialize_days'' #{RAILS_ROOT}/vendor/plugins/sublist/sub_list/lib/sub_list_system.rb:41:in `initialize_days'' #{RAILS_ROOT}/app/controllers/child_controller.rb:81:in `update'' -e:3 E:/Programmeren/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.1...