2009/3/7 Herman Müller <[email protected]>:
> Hi RoR Kollegen,
>
> gibt es eine Möglichkeit die Scaffold-Index-Ausgabe des Ruby-Codes
> <td><%=h user.kommentar %></td> auf eine Zeichenanzahl z.B. 20 zu
> begrenzen/abzuschneiden?

ungeachtet dessen, ob es vielleicht noch eine schönere
rails-spezifische Lösung gibt:

<td><%=h user.kommentar[0..20] %></td>

-Thomas

-- 
Thomas Preymesser
[email protected]
http://thopre.googlepages.com/
http://thopre.wordpress.com/
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/listinfo/rubyonrails-ug

Antwort per Email an