Embedded scaffolds work in same way as normal scaffolds, so if you load controller without embedding and get your overrided view, then you should get overrided view when embedding scaffold.
El Miércoles, 18 de marzo de 2015 11:41:31 Soren escribió: > Hi, > > I use Rails 4.2, ActiveScaffold 3.4.18.1 and Ruby 2.2.0 > > I use several embedded scaffold, but have a hard time overriding the > templates of the embedded scaffolds. > > As per the wiki the order for finding the template should be: > > 1. Wrapping Template app/views/controller_name/template.html.erb > 2. ActiveScaffold Global Template Override > app/views/active_scaffold_overrides/template.html.erb > 3. ActiveScaffold Frontend > vendor/plugins/active_scaffold/frontends/default/views/template.html.erb > > > (3 is presumably <gem_path>/app/views/active_scaffold_overrides for the Gem > version of AS) > > 3) obviously works for the embedded scaffold but will cause all views to be > changed. > 2) Works just as well - but changes all views within the App > 1) I have tried placing templates in the Views folder for the controller > hosting the embedded scaffold as well as the view folder for the controller > referenced in the Embedded Scaffold. Neither works. > > Is there something special about embedded scaffolds that prevents template > overwriting, or did I simply place my templates in the wrong location ? > > /S -- 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 http://groups.google.com/group/activescaffold. For more options, visit https://groups.google.com/d/optout.
