Hi all, I have a file called configure.text.erb in views/<class>/ directory.
Why does render 'configure.text.erb' actually work? How does render know that this is plain text? Does it assume this due to the text.erb ending? How does this actually all plumb together? And would be the difference in the between using the following two to generate html in a controller? Am I correct in assuming that the first one will only generate html if asked for, the other will generate it all the time? Does something in format.html call "render" ? respond_to do |format| format.html # configure.html.erb end and using render 'configure.html.erb' Rails does a whole lot of great things, but at the moment the magic is overwhelming me. Trying to work out how all this is connected is really confusing. Thanks for any light you can shed on this. Best regards, Andrew -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.