3

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

nonopolarity
  • 146,324
  • 131
  • 460
  • 740

1 Answers1

7

Call render via helper:

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

Check this question.

Community
  • 1
  • 1
jpemberthy
  • 7,473
  • 8
  • 44
  • 52