Hello,
I have a piece of code like:
...
<% content_for :js_templates do -%>
<%= "var phone='#{generate_template(contact_form, :phones, :partial =>
"/contacts/phones/create")}'" %>
<% end -%>
...
But that code is in a view that is called dynamic and of course
content_for
doesn't work.
I would like to know if, someone have a solution for that problem.
Regards,
David Sousa
--
Posted via http://www.ruby-forum.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
-~----------~----~----~----~------~----~------~--~---