-
|
Hi, current I have some code in the page like following: div class: "table-container" do
mount TableScheduler, year: $1.to_i, month: $2.to_i, current_user: current_user
endI want to get the generated HTML tags string instead of render it directly into page, then I can use it anywhere use Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
jwoertink
Jul 3, 2025
Replies: 1 comment 2 replies
-
|
With components you can call TableScheduler.new(year: $1.to_i, month: $2.to_i, current_user: current_user).render_to_string |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
zw963
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With components you can call
render_to_string. With a full page, you can just callto_s.