El Monday 27 April 2009 13:24:22 zeal escribió:
> Hi all,
>
>
> class Team < ActiveRecord::Base
>   has_many :player, :order => 'name asc', :dependent => :delete_all
> end
>
> In "team" controller create/update view, "create another" subform is
> coming for player.
>
> When you edit any record on "team" controller the subform for "player"
> displays one empty record,  in database also it is created
> automatically even if you don't press update button.
>

Thanks, it's fixed and backported now.

>
>
>
> ---------------------------------------------------------------------------
>------------- Same error reported in (2007):
>
> http://groups.google.com/group/activescaffold/browse_thread/thread/510895a6
>26223bdc/cb109d9b9da85239?lnk=gst&q=has_many%3A+%2B+%3Aorder#cb109d9b9da8523
>9
>
>
>
>
> ---------------------------------------------------------------------------
>----------------- When I upgrade my environment to rails 2.3.2, ruby 1.8.7
> and
> active_scaffold(master)
> I found this error. Previously it was not their.
>
>
>
>
> ____________________________________________________
>
> but when I changed my model (REMOVED :order => CLAUSE)
> it works perfectly as expected.
>
> class Team < ActiveRecord::Base
>   has_many :player, :dependent => :delete_all
> end
>
>
> I think there is a bug in active_scaffold.
>
>
> Thanks in Advance,
> Zeal
>
> 


-- 
Sergio Cambra .:: entreCables S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to