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