What action view method turns this: asdf asdf aslkj flkjasdfljf lkasdf asdlfkjsd flkajsdf ldkffljasf aslkfj asldfkjasdf nlfkajlskf lasdfkjaslfdj asl;fkaslf asdlfsalf Into this: asdf asdf aslkj flkjasdfljf lkasdf ... Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
jko170 wrote:> What action view method turns this: > > asdf asdf aslkj flkjasdfljf lkasdf > asdlfkjsd flkajsdf ldkffljasf aslkfj > asldfkjasdf nlfkajlskf lasdfkjaslfdj > asl;fkaslf asdlfsalf > > Into this: > > asdf asdf aslkj flkjasdfljf lkasdf ...Browsers do that these days: http://www.google.com/search?q=css+overflow+ellipses -- Phlip http://www.oreilly.com/catalog/9780596510657/ "Test Driven Ajax (on Rails)" assert_xpath, assert_javascript, & assert_ajax --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 5/21/07, Phlip <phlip2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Browsers do that these days: > > http://www.google.com/search?q=css+overflow+ellipses > >Wouldn''t that only work on IE? Nathan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
truncate does this, but i does not split by word, only by No. of Characters: http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M000615 if you need it p split at word boundaries, have a look at this code snippet, you can use it as a custom Helper Method: http://snippets.dzone.com/posts/show/804 On 21 Mai, 12:20, "Nathan Garza" <nathan.ga...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 5/21/07, Phlip <phlip2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Browsers do that these days: > > >http://www.google.com/search?q=css+overflow+ellipses > > Wouldn''t that only work on IE? > > Nathan--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks for that snippit. I have been wanting to figure out how to do this and have been just too lazy to do it. On 5/21/07, Thorsten <duplexxx-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > > truncate does this, but i does not split by word, only by No. of > Characters: > > http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M000615 > > if you need it p split at word boundaries, have a look at this code > snippet, you can use it as a custom Helper Method: > http://snippets.dzone.com/posts/show/804 > > > On 21 Mai, 12:20, "Nathan Garza" <nathan.ga...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On 5/21/07, Phlip <phlip2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Browsers do that these days: > > > > >http://www.google.com/search?q=css+overflow+ellipses > > > > Wouldn''t that only work on IE? > > > > Nathan > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---