Help with Rails console to edit text template

(I don’t know how to do that offhand). What problem is that solving? Why not do it from the UX or the API?