From in action (and not in view), I want to output quick debugging code.
Does the rails have a method for this?
in asp.net I would do:
Response.Write("hello");
It will be like this:
render :text => "hello"
You can only call the render or redirect once for one request, just FYI.
You can also use a registrar. Placed
logger.info "text" logger.info @var
somewhere in action. And thentail -f log/development.log
tail -f log/development.log
This way, you will not interfere with the normal rendering process, since you can only use it once.
Source: https://habr.com/ru/post/1772347/More articles:What type of argument does sscanf expect for a character class? - cBind virus protection for your .exe - exejquery checkbox with li - javascriptКак я могу увидеть файл или каталог, переданный в Vim из командной строки? - vimGoogle Chrome UserScript - Working with other windows and tied hands - javascriptDjango: foreign key requests - djangoHow to define an xpath expression that only extracts portable items from the first of two similar divs? - xpathis it possible to wait on ReadFile ()? - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1772351/setonseekcompletelistener-for-videoview-how-can-be-achieved&usg=ALkJrhi-NiYEdWkU7N-Kbi-GUaZugMEp-QHow to respond to canceled future downloads in a thread pool? - javaAll Articles