Breaking Rails, hackery that you probably shouldn't do - rendering views in model
You may have some reason to break outside MVC model and I won’t give you lecture why you shoudn’t really do it, neither I won’t describe how you will burn in hell for commiting that kind of sin. Instead I will provide a working solution how it can be done. Just as a example of bad pratice :P. So – how to render view inside model in Rails 3.2?