On Tue, Oct 4, 2011 at 21:07, Viral <[email protected]> wrote:

> var x = "<select id="activity_group" name="activity_group"

The problem is probably that you're using double-quotes inside a
double-quoted string.  Not sure if the ERB processing will process
this if you enclose the whole thing in single quotes, which would be
the easiest fix.  If that doesn't work (in many contexts, single
quotes are taken as "leave this stuff alone, don't process it in any
way"), try escaping the interior double quotes before actually using
the var's value.  (Don't just replace them with single quotes, since
many browsers don't recognize those for attributes.)

-Dave

-- 
LOOKING FOR WORK, preferably Ruby on Rails, in NoVa/DC; see main web site.
Main Web Site: davearonson.com
Programming Blog: codosaur.us
Excellence Blog: dare2xl.com

-- 
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