I’m very new to Rails. I’m using a simple project to get acquainted.
In this project what it seems to me that I want to do is to have an
action return a chunk of dynamically-generated html code complete with
dynamic content, html tags, etc. Of course, it is intended that this
content will then be incorporated into one or more views. I would
think that this would be a very common need. Since I’m not really
finding anything on this, I would first like to know if
I’m heading off in the wrong direction. If what I want to do is
reasonable; then, I’d like to know how to do it. I could easily
develop the dynamic content and send it to the console
with a series of puts statements at various strategic locations in my
action. However, I don’t want to do that. I want to RETURN the
dynamic code so that I can incorporate it
into views. If this is something that is commonly done, could someone
please square me
away on the proper methodology for handling it? Thanks for any input.