View Rails Render Text Images
View Rails Render Text
Images. The rails 3 docs say render text should be used for non html text, which does not fit your use case. A view is what the user sees.
Per discussion, render :text misdirect people to think that it would render content with text/plain mime type. The rails 3 docs say render text should be used for non html text, which does not fit your use case. We at rendered text are huge fans of ruby on rails.
Most of the time, you will work with html but you can also use javascript inside your views (which of course can again be rails generated) or different css.
The rails 3 docs say render text should be used for non html text, which does not fit your use case. You render a view, usually.html.erb files, which contain a mix of hmtl & ruby code. Per discussion, render :text misdirect people to think that it would render content with text/plain mime type. Rails will automatically render app/views/books/index.html.erb when you navigate to /books and you will see books are coming soon! on your screen.
Comments
Post a Comment