I create a method content_truncate to implementation my requirement. But it is so immature for merge into activesupport
I mean the result use content_truncate is more meaningful for user
sorry about my poor English.
--
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/eO8RZMSnCmU/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/51ae82b9.6ab3ec0a.7b56.0acc%40mx.google.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
On June 4, 2013 at 10:58:25 PM, Peter (ppge...@gmail.com) wrote:
You might checkout truncate_html and consider combining your functionality into there as options.\Peter
It seems use for content contains html tag, while i process for pure string without html tag
more than that, you can use it to produce your summary and save it into database.
I think it's a universal function, and we need not to limit it. just expand String
--
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/eO8RZMSnCmU/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/51afbb22.c74e320a.6068.ffff852d%40mx.google.com?hl=en-US.
On June 6, 2013 at 10:54:10 AM, Tamara Temple (tamous...@gmail.com) wrote:
If you want to, go ahead. Put it in a module, then send :include to
String with your module name.
If you really did not want suggestions, why did you ask for them? If you
already have an answer you are settled on, why open things up? Just do
it, see what you get.
I am sorry about your misunderstand, Thanks for your advices.