Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

Rails 7.2 - Metronic 9.0.6


Hello,

Could someone help me?

I'm trying to incorporate Metronic into a rails project.
(Rails 7.2, stimulus, esbuild and tailwind)
I didn't have problems with the CSS components.

But I've been having plenty of issues with JS.
I don't know if these issues are conflicts with stimulus or turbo rails. I did many tests for a few weeks and can't find what is happening.

Do you have some tips or ways to implement your JS in a rails project?

Thanks for your help.

Regards,
Mario


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi Fialho

Thanks for sharing your experience! Let me know if you run into anything else.

Thank you.



Hi Faizal,

Thanks so much. It's a great path.

Yeah, Turbo is the biggest issue.
I'm using Esbuild instead of Importmaps on Rails 7.2. I'm waiting for a stable version to migrate to 8.
However, I fixed some problems disabling turbo on the main links (link_to ... data: { turbo: false}).

Thank you.



Hi Fialho

Sorry for the delay in response. Here a user shared a guide on integrating Metronic 9 with Rails. We hope this information can be helpful.

https://devs.keenthemes.com/question/my-progress-on-using-metronic-9-with-rails-8-beta-1


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(