search for: uqieuxqmke0iy20dije0iw

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

2007 Mar 29
1
Extending the to_s method
Hi! I''m developing an localization plugin (just for my own purposes) and I wanted to extend the to_s method for the Time class. What I want to do: when someone does date.to_s(:short) that a localized version of the :short date is displayed. But I don''t know how to accomplish this. I know have this: class Time def to_s(option) print option.to_yaml
2007 Mar 11
0
Good code?
Hi, Could you look at some code I created? I don''t know if it''s good... or if it could be better. Especially the controller. I couldn''t find a way to let the declaration_payers be automatically saved. declarations_controller.rb: def create @declaration = Declaration.new(params[:declaration]) unless @declaration.save @users = User.find(:all)