hey again
How do I not call grouped_search? method ?
Before I pass in rails 5 it's working but now no ! :-(
Thank you if you can help me

*pp/views/active_scaffold_overrides/_show_columns_mail.text.erb* where line 
*#11* raised:

undefined method `grouped_search?' for 
#<#<Class:0x007fcfe7641658>:0x007fcfe763a9c0>

Extracted source (around line *#11*):

9
10
11
12
13
14
              

     css_class.concat(" #{column.css_class}") unless column.css_class.nil? %>
    <dd class="<%= css_class.strip %>">
    <%= show_column_value(record, column) -%>
<% end -%>
  </dd>
<% end -%>


Le jeudi 17 décembre 2015 18:49:05 UTC+1, Sergio Cambra a écrit :
>
> Create a helper module for your mailer, if you don't have one, and define 
> this method:
>
>  
>
> def active_scaffold_config
>
> ControllerClass.active_scaffold_config
>
> end
>
>  
>
> El Thursday 17 December 2015 08:41:04 Gloufy escribió:
>
> thank you but i don't know how to do that.
>
> ...add a helper method active_scaffold_config...
>
> Le jeudi 17 décembre 2015 12:55:21 UTC+1, Sergio Cambra a écrit :
>
> Probably you need to add a helper method active_scaffold_config, which 
> returns 
> active_scaffold_config_for(Model) or Controller.active_scaffold_config, 
> and 
> maybe some other helper methods needs to be added. Some helpers may be 
> added 
> to mailer, but active_scaffold_config needs to be added as a new helper 
> method, because you need to get config from a controller 
>
> El Jueves, 17 de diciembre de 2015 01:48:03 Gloufy escribió: 
> > i try it but i've got : undefined method `active_scaffold_config' for 
> > FicheMailer:Class 
> > how i can "include" activescaffold" in mailer ? 
> > 
> > Le jeudi 17 décembre 2015 09:01:23 UTC+1, Sergio Cambra a écrit : 
> > > You could try to use render :partial => 
> 'active_scaffold_overrides/show', 
> > > maybe :partial => 'show' works, but I never used activescaffold views 
> in 
> > > mailers. 
> > > 
> > > El Miércoles, 16 de diciembre de 2015 10:08:32 Gloufy escribió: 
> > > > Hi, 
> > > > 
> > > > I try to put result of a show action in a body of a email with a 
> mailer. 
> > > > How to do that ? 
> > > > 
> > > > Thanks a lot 
> > > > 
> > > > Gloufy 
>
> -- 
> 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] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at https://groups.google.com/group/activescaffold.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>

-- 
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.

Reply via email to