ID25 / rails_emoji_picker

Add emoji to your app :smiley_cat:
143 stars 41 forks source link

Emoji icon (to open other emojis) is not showing in production #27

Open shaam48 opened 6 years ago

shaam48 commented 6 years ago

@ID25 The Emoji icon (to open other emojis) (see below) is not showing in production and there are no JS errors - It is working in development but not in production

image

shaam48 commented 6 years ago

@ID25 I have followed these instructions as well: config/initializers/assets.rb

Rails.application.config.assets.precompile += %w( rails_emoji_picker.js )

application.html.erb

<body>
<div class="container">
  <%= render 'layouts/header' %>
  <%= yield %>
</div>

<%= javascript_include_tag 'rails_emoji_picker' %>
</body>

Emoji.asset_path should looks like this

Emoji.asset_path = '/assets/emoji/'

From https://github.com/ID25/rails_emoji_picker/issues/8