简体   繁体   English

awesome-share-buttons application.coffee文件在哪里

[英]awesome-share-buttons where is the application.coffee file

I am installing the gem awesome-share-buttons to implement social media share buttons on my rails app. 我正在安装gem awesome-share-buttons,以在我的rails应用程序上实现社交媒体共享按钮。 I noticed it calls for adding this line: 我注意到它要求添加此行:

#= require awesome-share-buttons

to your application.coffee file, however, that doesn't exist. 到您的application.coffee文件,但是不存在。 Would I make this file and add it there? 我会制作此文件并将其添加到那里吗?

After some research, I realized you can simply place it inside of your application.js file and change 经过研究,我意识到您可以将其放置在application.js文件中并进行更改

#= require awesome-share-buttons

to

//= require awesome-share-buttons

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM