Textilize on ajax update


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

See http://shnoo.gr/articles/2005/12/20/ajax-the-great. However, first
you have to get “textilize” to work. I suspect you don’t have RedCloth
installed. Try: gem install RedCloth.

Josh
http://shnoo.gr

Dylan M. wrote:

I’m writing a basic to-do application. I’m using a form_remote_tag to
submit the entry to my controller, which then returns the entry to be
displayed in the table of to-do items. However, I’d like to be able to
“textilize” the entry without having to reload the page. Is there any
way to have my ajax function textilize the text before displaying it in
the list? If I try to textilize it in my controller, I get an “undefined
method ‘textilize’” error.

Thanks!


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails