Moving rails javascript to public while keeping ruby code?

Posted by tesmar on Stack Overflow See other posts from Stack Overflow or by tesmar
Published on 2010-05-27T13:53:40Z Indexed on 2010/05/27 14:11 UTC
Read the original article Hit count: 117

Filed under:
|

Hi guys,

I have a project to move some JS code outside of rails into the public direcotry, but some of it has ruby code embedded, and depends on the values of the variables from the controllers to set some of its code. How can I move it out of the view and still maintain the same structure, or do I need to just rewrite the JS from scratch?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ruby-on-rails