Re: [Rails] javascript code execution on all pages except one.
On 22 December 2010 15:56, Mauro <mrsanna1@gmail.com> wrote:
> For all my applicatino I use layout A.
> In this layout I have <%= javascript_include_tag 'application.js' %>
> and, in this javascript I have some code that I want to execute on all
> pages exept one.
> How can I exclude this javascript only for one page?
You could extract that code to a separate .js file and have a separate
layout for that page that does not include the new js file.
Colin
--
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@googlegroups.com.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home