Ask A Question

Notifications

You’re not receiving notifications from this thread.

Building AnimatedGif.me Part 1 Discussion

This is awesome Chris! Thanks so much! This will help me and my team better understand rails coding from start to finish!

Reply

Awesome video, love the concept for this series and having a chance to watch you think :)

Anyone else having any issues using acts-as-taggable-on along with strong_migrations? Running rake db:migrate after installing acts-as-taggable-on is aborting the migration and throwing this error:

== 20200523200130 AddMissingUniqueIndices: migrating ==========================
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

=== Dangerous operation detected #strong_migrations ===

Adding an index non-concurrently locks the table. Instead, use:

class AddMissingUniqueIndices < ActiveRecord::Migration[6.0]
disable_ddl_transaction!

def change
add_index :tags, :name, unique: true, algorithm: :concurrently
end
end

/Users/JAckerman/Documents/webdev/orgchart/db/migrate/20200523200130_add_missing_unique_indices.acts_as_taggable_on_engine.rb:9:in `up'

Thanks!

Reply

So I ended up wrapping each piece of each migration in safety_assured { } as strong_migration found errors, which eventually got all of them to run. Seems like it is a known error - https://github.com/mbleigh/acts-as-taggable-on/issues/985

Reply

Found a way to get a masonry layout working with Tailwind by following this guide - https://blog.marclucraft.co.uk/masonry-layout-with-tailwindcss

Reply

with the last version of JSP ( rails 7) the compatible gem is "acts-as-taggable-on", "~> 5.0"

And after done the migration and try acts_as_taggable_on :tags and acts_as_taggable I get this errors

Rails couldn't find a valid model for ::ActsAsTaggableOn::Tagging association. Please provide the :class_name option on the association declaration. If :class_name is already provided, make sure it's an ActiveRecord::Base subclass.

Any idea how to fix this ?

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,796+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.