Forum: Ruby on Rails Re: Re: Is there a way to call helper methods in a controlle

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
big mac (Guest)
on 2006-05-22 09:02
(Received via mailing list)
Hi Bob,

Since I wanted it in a string, I've used it this way:
string = render_to_string :inline => "<%= link_to 'some_url',
:controller =>
'home', :action => 'command' %>"

Does the job.
Thanks!
Mac

------------------------------
This topic is locked and can not be replied to.