On 10 Jan 2011, at 17:40, Mauro wrote:

2011/1/10 Rodrigo Mendonça <[email protected]>:
this plugin was developed in rails 2
rails 3 need the command html_safe to transform plain texto to html
find the file vendor/plugins/2dc_jqgrid.rb and find the
method jqgrid_javascript and put html_safe
or put on the controllers or view... i changed this plugin and i don't know
exactly where you have to put the html_safe =D
html_safe works well: "<div><div>".html_safe
and it will transform to html

I''ve find a lot of errors, for example the method total_entries does
not exists, there isn't a plugin for rails 3?

It should be clear by now that gems/plugins for javascript generation are to be avoided. Not only will it generate ugly inline code in most cases, but you also lose a lot of control. If you want to use Javascript, then write Javascript, don't let some ruby gem write the code for you.

If you ever want to work with a framework (which is in no way comparable to jquery ui components, which are more granular and only implement the view layers and not a client side datastore etc) such as ExtJS or SproutCore or one of the MVC Javascript frameworks, you'll simply have no other choice than to write proper Javascript (although with Sproutcore that's quite debatable, but still).


Best regards

Peter De Berdt

--
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to