Displaying 2 results from an estimated 2 matches for "modelmethods".
2010 Jun 16
2
class methods from module where active rec is involved
...:host => DB_Host,
:database => DB_Database,
:username => "me"
# :password => "secret"
)
module ModelClassMethods
def mycreate(pkey_val)
pkey_fld = self.primary_key
end
end
class ActiveNode < ActiveRecord::Base
extend ModelClassMethods
# include ModelMethods
end
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...
2006 Apr 27
7
SuperImage plugin
Greetings all,
This is the first release of the SuperImage plugin. The idea is you
upload images to the database, and then pull them out at any size you
want. Combine this with caching and it will stay light and fast.
More info and instructions are here:
http://beautifulpixel.textdriven.com/articles/2006/04/27/superimage-plugin-making-resizeable-uploaded-images-easy
svn: