Forum: Ruby on Rails Textilize on ajax update

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dylan M. (Guest)
on 2005-12-24 02:58
(Received via mailing list)
_______________________________________________
Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails
Joshua H. (Guest)
on 2005-12-24 03:18
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!
Dylan M. (Guest)
on 2005-12-24 03:25
(Received via mailing list)
_______________________________________________
Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails
This topic is locked and can not be replied to.