In my view i have link like following
<%= link_to raw(truncate(strip_tags(record.sch.first.to_s + ': ' + record.name), :length => 120, :omission => "...")), (Figaro.env.base_url + record.named_url) %>
But as result this produces me link like
basedomain.com/(Figaro.env.base_url)/record.named_url
when i want it to be
(Figaro.env.base_url)/record.named_url
How do i make this like absolute, not relative?
Add only_path: false
at the end:
<%= link_to raw(truncate(strip_tags(record.sch.first.to_s + ': ' + record.name), :length => 120, :omission => "...")), (Figaro.env.base_url + record.named_url), only_path: false %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With