[Rails] Re: ROR : Need help to finish a website related to Starcraft 2

2011-11-01 Thread Matias Fierro
I'm RoR freelancer. Contact me to my email or skype so you can tell me what do you need and where is the source code and the website. On Oct 31, 10:29 am, BorisR wrote: > Hi, > > I am sorry if its not the place but today im pretty desperate. During > the past six month, I have been working on a S

[Rails] Re: 2 records getting inserted in two different tables using one database call

2011-03-31 Thread Matias Fierro
Its not clear what you need or why you can't just call two different inserts. But maybe a callback as after_create will help you. class User after_create :create_blog def create_blog Blog.create(:title => self.name) end end On Mar 30, 4:48 pm, Payal Patel wrote: > how would you execute 2 inse

[Rails] AfterSave callback but only when the record is new

2011-02-07 Thread Matias Fierro
I want to trigger a callback after the creation of an object. With a after_create I have the problem that if the record crash for any reason when save, then I have some corrupt data. So I need a callback after_save but only when the record is new. -- You received this message because you are subs

[Rails] Re: How to make an ActiveRecord::Base object to have a list of strings?

2010-10-24 Thread Matias Fierro
Serialize ? What do that ? On Oct 23, 6:54 am, Gogov wrote: > I guess I can use that. Thank you! > > Martin > > On Oct 19, 1:07 pm, Frederick Cheung > wrote: > > > > > > > > > On Oct 18, 5:46 pm, Gogov wrote: > > > > === > > > class Paragraph < ActiveRecord::Base > > >   has_many :words, :class