I have a template called createFile.html.erb which has some ruby
code in
it. The ruby code pulls information from the database because i'm
looping through some records. Is it possible to send all of the
information in the createFile.html.erb output to the createFile method
in the controller? I'm wanting to save the content of it all to a text
file...
render_to_string puts the whole html document in the data including the
template, however I only need part of the file. This code might explain
it a little better.
render_to_string puts the whole html document in the data including
the
template, however I only need part of the file. This code might
explain
it a little better.