I had the below string
@trees = ‘A poem lovely as a tree.’
On which except is applied
<%= excerpt(@trees, “lovely”, 8) %>
And the resultant is
…A poem lovely as a tre…
I wasn’t able to figure out how.
Regards,
Piyush G.
99161-33729
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