Hi,
I have refactored my code and the previous function in my controller
help.truncate() doesn’t seems to work anymore in my model.
My model class is generating files and I’d like to use this text helper.
How can I fix that?
Thanks
Hi,
I have refactored my code and the previous function in my controller
help.truncate() doesn’t seems to work anymore in my model.
My model class is generating files and I’d like to use this text helper.
How can I fix that?
Thanks
If you want to use rails text helpers in your model then include the
text helper module in the model like so
include ActionView::Helpers::TextHelper
On Oct 29, 10:34 am, David N. [email protected]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs