I thought Ruby on Rails "script/console" can let me do "render :text => 'hello' " but it says render is not defined?
views:
41answers:
1`helper.number_to_currency('123.45')` works, but `helper.render :text => "foo"` doesn't
動靜能量
2010-07-29 23:03:24
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
2010-07-29 23:25:37
I am using 2.2.2 in our dev / prod environment
動靜能量
2010-07-30 03:12:26
That's probably why It isn't working for you :(.
jpemberthy
2010-07-30 14:05:36