Re: [Rails] different code for each record, how to implement??

2011-07-12 Thread Ramon Leon
tion. Is there some reason you wouldn't just reflect the subclasses? Is there some reason for a factory that does nothing? Even if you need a factory, why wouldn't you just use class methods on Site? -- Ramon Leon http://onsmalltalk.com -- You received this message because you are s

Re: [Rails] Re: Out of order Ajax responses

2011-05-05 Thread Ramon Leon
success: function(data){obj.replaceWith(data);} }); } Jeffrey Look closely at your function, what is the scope of the variable named obj? Ask yourself what happens when multiple calls to replace article are sharing a global reference to obj because you forgot to say var obj. -- Ra

Re: [Rails] Re: ActiveRecord: when exactly is a record (model) saved to the database?

2011-04-01 Thread Ramon Leon
e. From this information it then returns the incorrect state of true. The current behavior is clearly wrong of course. -- Ramon Leon -- 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 rubyonrai

Re: [Rails] Re: ActiveRecord: when exactly is a record (model) saved to the database?

2011-04-01 Thread Ramon Leon
ct, if the principle of least surprise means anything. -- Ramon Leon -- 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@googlegroups.com. To unsubscribe from this group, s

Re: [Rails] Re: need to mimic threading across controllers

2011-03-30 Thread Ramon Leon
ont that data loss doesn't matter. You *will lose data*. It is your application who defines what's a reasonable behavior. Again, that's a given. -- Ramon Leon -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" g

Re: [Rails] Re: need to mimic threading across controllers

2011-03-30 Thread Ramon Leon
e user W updated one unrelated field. User U is now very pissed. -- Ramon Leon -- 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@googlegroups.com. To unsubscribe from this gr

Re: [Rails] Re: need to mimic threading across controllers

2011-03-30 Thread Ramon Leon
ed since the initial view. -- Ramon Leon -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+uns