Skip to content

Instantly share code, notes, and snippets.

@raphaelcosta
Created July 6, 2010 05:46
Show Gist options
  • Select an option

  • Save raphaelcosta/465060 to your computer and use it in GitHub Desktop.

Select an option

Save raphaelcosta/465060 to your computer and use it in GitHub Desktop.
def jquery_include_tag
if Rails.env == "production"
javascript_include_tag "jquery.min"
else
javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment