search for: new_things

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

Did you mean: new_thing
2006 Jun 08
3
Macros and stuff
I was looking at my controller code and the edit/create/update/new for each are practically identical. So first I DRY''d the four methods in each controller to just one and then I decided to write a single macro for all my controllers. This is the macro: def self.edit_action_for(model, options = {}) model_class = Object.const_get(model) define_method(:edit) do
2006 Jul 12
6
Copying Records
This might seem like a silly quesiton but it''s been baffling me all day! I want to copy all records matching certain criteria from table A to table B. I know how to do his with SQL but not with RoR. -- Posted via http://www.ruby-forum.com/.