I thought Ruby on Rails "script/console" can let me do "render :text => 'hello' " but it says render is not defined?
Asked
Active
Viewed 2,019 times
1 Answers
7

Community
- 1
- 1

jpemberthy
- 7,473
- 8
- 44
- 52
-
`helper.number_to_currency('123.45')` works, but `helper.render :text => "foo"` doesn't – nonopolarity Jul 29 '10 at 23:03
-
What version of `Rails` are you using? I tested it with `2.3.4` and `3beta3` check out this gist. http://gist.github.com/499498 – jpemberthy Jul 29 '10 at 23:25
-
I am using 2.2.2 in our dev / prod environment – nonopolarity Jul 30 '10 at 03:12