Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails: Cannot use methods defined in application helper within devise email views?

I created some sort of mini cms, and I am trying to call a function called render_content within the email confirmation view, but it just won't take it :( Alway complaining the method does not exist ? I am not sure what I am doing wrong here... Alex

like image 262
Alex Avatar asked Nov 08 '25 01:11

Alex


1 Answers

Well after a while I figured it out, if the helper is located in the Application Helper, then this call will work:

ApplicationController.helpers.render_content()

Alex

like image 87
Alex Avatar answered Nov 10 '25 16:11

Alex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!