Is it possible to get some code with JavaScriptGenerator to be rendered in a separate .js file, not just put in a view with <script ...> code code code </script> Is this possible? I haven''t found any info on this topic, my guess is that this is not possible, but I wanted to make sure. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Apr-08 07:27 UTC
Re: JavaScriptGenerator in separate .js file, not a view
On Apr 8, 1:44 am, Paulo Pereira <paulo.z...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is it possible to get some code with JavaScriptGenerator to be > rendered in a separate .js file, not just put in a view with > <script ...> > code > code > code > </script> > > Is this possible? > > I haven''t found any info on this topic, my guess is that this is not > possible, but I wanted to make sure.How about if you had a separate action (and probably controller) that just rendered some rjs ? Fred --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---