Welcome! Welcome! Welcome! Ladies and Gentlemen, soon you shall be thrilled and dazzled by wonders of magical mystery. Soon, very soon, Dr Nic''s Magic Models will be unveiled to all. Children will giggle; Rubists will nod acknowledgingly; Railers will applaud loudly. No entry fee. 2 drink minimum. Watch out for the Invisible Model Classes. Got a legacy database of 50 tables? You can''t be bothered writing model files for each and every one? Watch closely as the Invisible Model Classes appear before your very eyes just when you want them, for each and every table of your database. WOW! Laziness at your fingertips. More, you ask? More? How about Astral Associations? Unconfirmed rumours suggest that Dr Nic''s Magic Models will perform the following stunning trick: class Foo < ActiveRecord::Base has_many :bars belongs_to :car end can be defined simply as: class Foo < ActiveRecord::Base end Tada!!!! That''s right. You ask @foo.car and a Car will be waiting for you. @foo.bars gives you a list of Bars; and if you''re feeling lucky, @foo.bar gives you the first Bar. Finally, I shall merely tantalise you with the mere suggestion of a trick called Virtual Validations. Tickets are available by pressing the Reply button. -- Posted via http://www.ruby-forum.com/.
Ill take two! -- Posted via http://www.ruby-forum.com/.
ticket please -- Posted via http://www.ruby-forum.com/.
Dr Nic wrote:> How about Astral Associations? Unconfirmed rumours suggest that Dr Nic''s > Magic Models will perform the following stunning trick: > > class Foo < ActiveRecord::Base > has_many :bars > belongs_to :car > end > > can be defined simply as: > class Foo < ActiveRecord::Base > endCool...I''ve been working on the very same problem: I don''t want to define DB constraints twice. If you''re interested in any collaboration, let me know Cheers. - Bryan -- Posted via http://www.ruby-forum.com/.
> If you''re interested in any collaboration, let me knowI guess magicians need assitants... do you look good in a dress? :) -- Posted via http://www.ruby-forum.com/.
> If you''re interested in any collaboration, let me knowI guess magicians need assistants... do you look good in a dress? :) Absolutely, let me know what extra tricks can be added. Use the ''Enable email notification'' feature of ruby-forum (http://www.ruby-forum.com/topic/74957) and I''ll post a forward note to this thread when its done. Cheers Nic -- Posted via http://www.ruby-forum.com/.
> Tickets are available by pressing the Reply button.<% RoRForum::button.push < Dr Nic''s Magic Models %> -- Posted via http://www.ruby-forum.com/.
Dr Nic, some examples for newbies about application creation with your magic models + magic model generator would be really nice! thanks! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---