Skip to content

Conversation

@sdhull
Copy link
Contributor

@sdhull sdhull commented Mar 24, 2025

As mentioned in this comment, the installer looks for an erb file and it can't find it because the packaged gem doesn't include it. This simply adds .erb files to what's included in the gemspec.

I tried pointing my gem file at this branch and running rails g ruby_ui:install and it managed to complete the install (though it complained about tailwind.config.js not being available, since Tailwind 4 no longer uses that file by default). I used #232 to get the tailwind css config. I haven't tested that part thoroughly but it seems promising so far

Copy link
Contributor

@stephannv stephannv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@stephannv stephannv merged commit 64cf320 into ruby-ui:main Mar 24, 2025
2 checks passed
@sdhull sdhull deleted the sdh/fix-rails-install branch March 24, 2025 21:56
@paul
Copy link

paul commented Mar 25, 2025

Aw, I was too slow. @stephannv I discovered some other files that need to be included, too: #226 (comment)

This needs to pull in .yaml and .js files. Probably safer to just pull in everything in ./lib, like what phlex-rails does.

@stephannv
Copy link
Contributor

@paul I just opened a PR: #239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants