简体   繁体   中英

I thought Ruby on Rails “script/console” can let me do “render :text => 'hello' ” but it says render is not defined?

我认为Ruby on Rails“script / console”可以让我做“render:text =>'hello'”,但它说渲染没有定义?

Call render via helper :

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

Check this question .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM