search for: old_initialize

Displaying 3 results from an estimated 3 matches for "old_initialize".

2008 Aug 18
3
FXRuby FXScintilla question
...ello, I have started learning FXRuby about 2 weeks ago. Now I''m trying to launch the scintilla_test.rb from the fxruby-1.6 installation directory (/usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/examples) and get this error: /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb:2007:in `old_initialize'': wrong number of arguments (8 for 0) (ArgumentError) from /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb:2007:in `initialize'' from -:32:in `new'' from -:32:in `initialize'' from -:75:in `new'' from -:75 Exited: 256 I''m on Ubu...
2006 Mar 13
6
noob question!! auto fill forms
I''ve been using rails for about 3 months and have a pretty cool app going, but i need to auto-fill some form data. is this possible? i would think so. well anybody to lend me a helping hand, much appreciated. -- Posted via http://www.ruby-forum.com/.
2006 Mar 14
7
Overriding new or create for a model
I have a model where I need to calculate one of the fields when I create a new instance. It seems to me that I should do this in the model code and that I should override the new and/or create methods. Is this the right approach and, if so, how can I execute the existing method but add on my calculation? I want something like: def create -Do the original create first- field =