Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • 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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(