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!
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!
On 5/21/07, Phlip [email protected] wrote:
Browsers do that these days:
Wouldn’t that only work on IE?
Nathan
jko170 wrote:
What action view method turns this:
asdf asdf aslkj flkjasdfljf lkasdf
asdlfkjsd flkajsdf ldkffljasf aslkfj
asldfkjasdf nlfkajlskf lasdfkjaslfdj
asl;fkaslf asdlfsalfInto this:
asdf asdf aslkj flkjasdfljf lkasdf …
Browsers do that these days:
http://www.google.com/search?q=css+overflow+ellipses
–
Phlip
Test Driven Ajax (on Rails) [Book]
“Test Driven Ajax (on Rails)”
assert_xpath, assert_javascript, & assert_ajax
truncate does this, but i does not split by word, only by No. of
Characters:
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
Thanks for that snippit. I have been wanting to figure out how to do
this
and have been just too lazy to do it.
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