textile and ruby on rails
Posted by Jason, Mon Apr 30 06:27:00 UTC 2007
I love textile. For those not up on this yet, textile is a lightweight markup language which converts its marked-up text input to valid, well-formed XHTML. This can be really handy if you are building a site where the user wants some formatting functionality, but doesn't with to write their own XHTML. Recently, I was developing a project that required this and I came across the plugin acts_as_textiled and the even cooler textile editor helper. The combination will allow you to easily set up textile forms in your views simply by installing the plugins and defining acts_as_textiled in your models for the appropriate fields. With the addition of the textile editor helper you can get a "what you see is what you get" UI with all the buttons and functionality to make it look like a regular desktop application.I'm not doing to write up a howto on this, as it is really that easy. If you follow the links above and check out the sites for both, you will see how easy the setup is, I was really only wanting to point out the textile editor helper as I have found that most have (yet) to hear about it and it really puffs up acts_as_textiled to make a really nice way to incorporate textile into you application.
Enjoy!