开发者

Can I add text to page-source dynamically in Ruby on Rails

I would like to add text dynamically to the page source in a particular view. I checked the IO streams, but couldn't find anything. Could you please provide some pointe开发者_开发问答rs.

Edit:

Thanks for the reply. I was trying to know how much time each part/component in a particular view takes to render and log it as part of the page-source. Please let me know if I am not clear enough.


You can use JavaScript to modify the Document Object Model (DOM) of a page after Rails has rendered the view. If you edit your question to make it more specific then we can give more specific answers.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜