Gregor Panek
2010-Jul-22 12:16 UTC
[RAILS] truncate only works local, after deploy it does nothing
Hi all, i have strange problem. On my site i have a teaser for an article. This teaser is truncated after 200 letters. On my local machine it works perfect. After i deploy my application on the serverside, nothing is truncated. So i looked into the files on the server if the truncate command is set and it is. So that''s not the problem. Here is the my output of the truncate command: <%=sanitize(textilize truncate(article.teaser,200))%> i tried to change it to something like this: <%= truncate(article.teaser,200)%> but nothing changed. So it''s not a problem with the XSS plugin. Has anybody an idea what could be the problem? Thanks and Greetings G.P -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.