Wednesday, June 5, 2013

Re: [Rails] How about add a method to truncate a long text more smart?

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


On June 6, 2013 at 6:27:21 AM, Tamara Temple (tamouse.lists@gmail.com) wrote:

soffolk <zlx.star@gmail.com> wrote:
> I mean the result use content_truncate is more meaningful for user

So, this would be something you'd use in a view? If so, it should go in
a helper.

--
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-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@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.
For more options, visit https://groups.google.com/groups/opt_out.


0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate