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 Gupta 99161-33729 http://ctrlshiftesc.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---