0

I'm trying to use the cache option with the javascript_include_tag helper like so: javascript_include_tag "test", "test2", :cache => "test"

Looking at the rails api documentation, I think everything looks alright.

But when I try to use this, I get the error message: wrong number of arguments (3 for 2)

I'm using Rails 3.1.3

1
  • You need to post more of the error message, preferable the stack trace. Commented Feb 19, 2012 at 7:42

1 Answer 1

2

If you are using Rails 3.1, you do not need :cache any more. The assets pipeline will take care of it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.