Ask A Question


You’re not receiving notifications from this thread.

Building 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!


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]

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

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



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 -


Found a way to get a masonry layout working with Tailwind by following this guide -


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 ?

Join the discussion
Create an account Log in

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

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

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