Re: [Rails-core] Why does Rails not reset the association when the id is changed?

2011-02-07 Thread Xavier Noria
On Sun, Feb 6, 2011 at 2:10 PM, Rainer Frey frey.rai...@gmail.com wrote: Unfortunately the Rails Guide on Active Record Validation and Callbacks says (Section 3.9): If you want to be sure that an association is present, you’ll need to test whether the foreign key used to map the association

Re: [Rails-core] ActiveModel::AttributeMethods limiting

2011-02-07 Thread Santiago Pastorino
Hey Alex, if you want go ahead and try a fix ;). On Sat, Feb 5, 2011 at 4:37 AM, Alex alexander.uva...@gmail.com wrote: In my attempt to add AM:Dirty to my model I realized that AM#AttributeMethods is a bit imperfect. It's impossible to generate attribute methods step-by-step in

Re: [Rails-core] Why does Rails not reset the association when the id is changed?

2011-02-07 Thread Rainer Frey
On Mon, Feb 7, 2011 at 11:58 AM, Xavier Noria f...@hashref.com wrote: On Sun, Feb 6, 2011 at 2:10 PM, Rainer Frey frey.rai...@gmail.com wrote: Unfortunately the Rails Guide on Active Record Validation and Callbacks says (Section 3.9): If you want to be sure that an association is present,

[Rails-core] Re: Looking for maintainers of Rails plugins

2011-02-07 Thread EMoreth
Since I got no answer from rails_upgrade, I can help with any project. Anyone willing to share management, please talk to me. Everton On Feb 4, 2:31 pm, Anuj Dutta dutta.a...@googlemail.com wrote: As advised by Santiago here's my preference: open_id_authentication asset_server Thanks.

Re: [Rails-core] Why does Rails not reset the association when the id is changed?

2011-02-07 Thread Jon Leighton
On Mon, 2011-02-07 at 14:28 +0100, Rainer Frey wrote: On Mon, Feb 7, 2011 at 11:58 AM, Xavier Noria f...@hashref.com wrote: On Sun, Feb 6, 2011 at 2:10 PM, Rainer Frey frey.rai...@gmail.com wrote: Unfortunately the Rails Guide on Active Record Validation and Callbacks says (Section 3.9):

Re: [Rails-core] Why does Rails not reset the association when the id is changed?

2011-02-07 Thread Xavier Noria
On Mon, Feb 7, 2011 at 2:28 PM, Rainer Frey frey.rai...@gmail.com wrote: But this thread seems to suggest one should simply validate the association attribute instead. Is that not sufficient then? You can't still be sure the association is valid, because the associated object is cached if

Re: [Rails-core] Re: Email and URL validators in ActiveModel

2011-02-07 Thread Franck Verrot
I'd be glad to help as I've already created (with other people) ActiveValidators https://github.com/cesario/activevalidators. FYI Iain, the email validation is based on the mail gem. Franck On Mon, Feb 7, 2011 at 6:32 AM, Ryan Bigg radarliste...@gmail.com wrote: I think making this a gem

Re: [Rails-core] Why does Rails not reset the association when the id is changed?

2011-02-07 Thread Jon Leighton
Hey, On Mon, 2011-02-07 at 15:22 +0100, Xavier Noria wrote: On Mon, Feb 7, 2011 at 2:28 PM, Rainer Frey frey.rai...@gmail.com wrote: But this thread seems to suggest one should simply validate the association attribute instead. Is that not sufficient then? You can't still be sure the

[Rails-core] Re: Looking for maintainers of Rails plugins

2011-02-07 Thread Lars Smit
@Darian Shimy: Thanks for adding me as collaborator for the http_authentication plugin. On 5 feb, 01:17, Darian Shimy dsh...@gmail.com wrote: @Lars Smit: No problem, I added you as a collaborator. -- Darian Shimy On Feb 4, 2011, at 5:39 AM, Lars Smit wrote: I see that John Dewey and

Re: [Rails-core] Re: Email and URL validators in ActiveModel

2011-02-07 Thread Aaron Patterson
On Mon, Feb 07, 2011 at 04:32:02PM +1100, Ryan Bigg wrote: I think making this a gem first would be a good start, and once its garnered major support then it will be merged into core. Not all applications have to validate email and URLs (although, a large majority do, I will concede) I agree

Re: [Rails-core] Re: Email and URL validators in ActiveModel

2011-02-07 Thread Nikos Dimitrakopoulos
I must say I agree. A good, stable and full featured gem is what's needed. The only downside to this is that newcomers to the framework won't know it and thus have to re-implement the wheel again and again, at least in their first steps. Could the gem be officially supported, possibly with a