Skip to main content

How do I insert smart variables with a text editor?

Rails • Asked by Taylor Cooney

I would really appreciate some insight to how you could let a user select from pre-definied variables in a dropdown and insert them into a text area; some people have mentioned saving a liquid and re-rending as a liquid template. I've seen this done numerous times, but this is the cleaniest implementation (https://i.imgur.com/QVCVfYs.pnghttp://)

I believe there is an easier way to implement this. Let me know if you have any experience with something like this.



Still looking for some insight here!


Sorry to spam but still looking for some insight here. I've tried looking up across the web but having trouble finding anything related to the idea.


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.