Ask A Question

Notifications

You’re not receiving notifications from this thread.

Actiontext used for templates/placeholders

Tim Dowling asked in Rails

I've got a little business finance management app and I'd love my users to be able to create their own custom templates for quotes/invoices. The way all my competitors do it is through merge fields with DOCX templates which is fiddly for the user.

I just watched Chris' railsconf talk on action text and creating custom attachments and was wondering whether instead of attaching a record you could leave a placeholder where i could pass the record in via json and it renders in the template? I've only seen examples where an actual record is retrieved so wondering if this can be done? Alternatively would the better way be to use a normal wysiwyg editor and create a placeholder for the record attributes that gets populated? Keen for all the ideas!

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,464+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.