Does action-like-taggable-on do hero work?

I have a question: does the action-like-taggable-on gem work on the hero?

I tried but it doesn't seem to work. In my development machine, it works fine. I am wondering if this could be because Heroku uses PostgreSQL and my local env SQLite, and for some reason postgresql is not supported by the special tagging "magic"?

I could not find any information related to this, so I would like to know about it to others. I think this is quite rare, since both stones and geroku are very popular.

ActionView::Template::Error (undefined method `interests' for "#<About:0x2b35d6125728>":About): <% unless @user.about.interests.empty? %> <p><strong>interests and passions</strong><br /> <% @user.about.interests.each do |tag| %> <%= tag %>, <% end -%></p><% end %> 

In my about.rb model, I have

 acts_as_taggable_on :interests, :music, :movies, :books, :tvs 

Thank you in advance!

+4
source share
1 answer

according to fooobar.com/questions/1333377 / ... , do you need to migrate after you git push heroku master ? do a heroku rake db:migrate just in case. hell, I would even make heroku restart just for fun.

Oh, and you have the right associations between User and About, I hope.

+3
source

Source: https://habr.com/ru/post/1333375/


All Articles