" hello ", but it says the render is not defined? I though...">

I thought that Ruby on Rails "script / console" might allow me to do "render: text =>" hello ", but it says the render is not defined?

I thought that Ruby on Rails "script / console" might allow me to do "render: text =>" hello ", but it says the render is not defined?

+3
source share
1 answer

Call renderthrough helper:

>> helper.render :text => "foo"
=> "foo"

Check this question .

+7
source

Source: https://habr.com/ru/post/1757237/


All Articles