yes, thanks. I think the commented lines were my 1.2.x style and I had
already found that and for some strange reason, that particular report
formatted print the same as screen. But better to make it predictable
and follow the rules.
I think that I don’t understand the differences between erb files and
rhtml files and before I write a bunch of view files, it would be nice
to understand the differences. Does anyone have a link to a page that
explains the differences between rhtml and erb?
Craig
–
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
There’s no difference between rhtml and erb, it was a change in naming
conventions:
“We’ve separated the format of the template from its rendering engine.
So show.rhtml now becomes show.html.erb, which is the template that’ll
be rendered by default for a show action that has declared format.html
in its respond_to. And you can now have something like show.csv.erb,
which targets text/csv, but also uses the default ERB renderer.”
Cheers,
Nicholas
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.