Displaying 1 result from an estimated 1 matches for "my_active_record_object".
2010 Sep 24
0
Rails 3, using helpers in controller
Hi everyone,
is there any way how to use Helpers in Controllers in Rails 3? I was
trying to google about it, but no luck.
In old Rails times (2.x) we were using something like this.
my_active_record_object.variable = "This is the message body:<br /><br
/> #{@template.simple_format(params["message"])}"
point is that when we wanted to attach text from Text Area to some other
HTML text with leaving breaks and paragraphs and so. We were able to
call helper methods by usin...