When I write
var x = "<%= select_tag(:activity_group,
options_for_select(activity_grp),{:include_blank => 'Create New
Group', :style => 'width: 100px'}) %>";
where <% activity_grp = @activity_group.map { |ag| [ag.name,
ag.id] } %>
However, I get error (missing ; before statement) in Firebug because
var x = "<select id="activity_group" name="activity_group"
style="width: 100px"><option value="">Create New Group</option><option
value="1">Movie</option>
<option value="2">Report</option>";
the code generated takes more than one line without concat the entire
output. I tried html_safe as well it does not works
Can anyone guide me who came across this error before?
--
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.