You should put in a helper only used by mailer El Miércoles, 23 de diciembre de 2015 18:24:28 Gloufy escribió: > thank for your comment ! > i found the bug ! > do you remember i ask how to use activescaffold on mailer ? > you said to me put > > def active_scaffold_config > > FichesController.active_scaffold_config_for(Fiche) > > end > > in the FichesHelper ! > > and that's the bug for the embembed scaffold it's use this fonction ! and > return always fichesController ! > > Le mardi 22 décembre 2015 14:22:34 UTC+1, Sergio Cambra a écrit : > > I tried with two models with same table and it didn't fail to me. > > ActiveScaffold doesn't use table name for anything, except sql queries. > > > > However, in rails, to share table with different models, usually there is > > a > > model, e.g. Per, and other models inherit from it. Also table needs to > > have > > type column to store model name, or define this column with > > self.inheritance_column > > > > El Martes, 22 de diciembre de 2015 04:56:17 Gloufy escribió: > > > i think activescaffold doesn't like if two different model has the same > > > table... > > > when i want to edit a record from members controller, it takes the > > > fichescontroller to maker rules ... > > > > > > Le mardi 22 décembre 2015 11:53:13 UTC+1, Gloufy a écrit : > > > > Hi, > > > > > > > > When i have many embembed scaffold in the same views like this : > > > > > > > > <%=render :active_scaffold => "fiches",:label=>"Fiches"%> > > > > > > > > <%=render :active_scaffold => "membres",:label=>"Membres"%> > > > > > > > > <%=render :active_scaffold => "vehicules",:label=>"Véhicules"%> > > > > > > > > > > > > Fiches > > > > > > > > Photo portrait > > > > > > > > Photo en pied > > > > > > > > To label > > > > TOTO CÉDRIC[image: loading indicator]Éditer > > > > < > > > > http://ns3267175.ip-5-39-80.eu:3000/fiches/2/edit?eid=c497f580171825454ca > > > > > > f2482f29fce99> 1 Trouvé > > > > > > > > Fiches > > > > > > > > Photo portrait > > > > > > > > Photo en pied > > > > > > > > To label > > > > TOTO MARIO[image: loading indicator]Éditer > > > > < > > > > http://ns3267175.ip-5-39-80.eu:3000/membres/3/edit?eid=7342eaf7708e03ba2d > > > > > > 1d0bd97ef55e23> 1 Trouvé > > > > > > > > Fiches > > > > Type > > > > < > > > > http://ns3267175.ip-5-39-80.eu:3000/vehicules?eid=7276d2d089323a2f9edfff4 > > > > > > d1eb8941d&page=1&sort=Type&sort_direction=ASC> Marque > > > > < > > > > http://ns3267175.ip-5-39-80.eu:3000/vehicules?eid=7276d2d089323a2f9edfff4 > > > > > > d1eb8941d&page=1&sort=Marque&sort_direction=ASC> > > > > > > > > Marque > > > > > > > > Voiture > > > > Modele > > > > < > > > > http://ns3267175.ip-5-39-80.eu:3000/vehicules?eid=7276d2d089323a2f9edfff4 > > > > > > d1eb8941d&page=1&sort=Modele&sort_direction=ASC> Annee > > > > < > > > > http://ns3267175.ip-5-39-80.eu:3000/vehicules?eid=7276d2d089323a2f9edfff4 > > > > > > d1eb8941d&page=1&sort=Annee&sort_direction=ASC> Couleur > > > > < > > > > http://ns3267175.ip-5-39-80.eu:3000/vehicules?eid=7276d2d089323a2f9edfff4 > > > > > > d1eb8941d&page=1&sort=Couleur&sort_direction=ASC> Nombredeplace > > > > < > > > > http://ns3267175.ip-5-39-80.eu:3000/vehicules?eid=7276d2d089323a2f9edfff4 > > > > > > d1eb8941d&page=1&sort=nombredeplace&sort_direction=ASC> > > > > Immatriculation > > > > > > < > > > > http://ns3267175.ip-5-39-80.eu:3000/vehicules?eid=7276d2d089323a2f9edfff4 > > > > > > d1eb8941d&page=1&sort=immatriculation&sort_direction=ASC> > > > > > > > > Photo > > > > Roller--------[image: loading indicator]Éditer > > > > < > > > > http://ns3267175.ip-5-39-80.eu:3000/vehicules/5/edit?eid=7276d2d089323a2f > > > > > > 9edfff4d1eb8941d> 1 Trouvé > > > > > > > > > > > > And i have the wrong label. > > > > And if a put config.create.link =false in the first controller > > > > (fiches), i > > > > > > haven't the create link on the other embembed scaffold > > > > > > > > Why ? > > > > > > > > Thank you so much
-- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/activescaffold. For more options, visit https://groups.google.com/d/optout.
