Yes, I think this is because the Heroku console evaluates each line as
it's being sent. In this way it's more like Capistrano's shell than ./
script/console or irb.
What I would do is condense that into an inline block like this:
people.each{ |person| puts person.to_s }
If you need more complicated statements your best bet is to run it as
a rake task.
On Jan 5, 3:11 am, sushi <[email protected]> wrote:
> >> person.each do |person|
>
> SyntaxError: compile error
> /home/heroku_rack/lib/console.rb:133: syntax error, unexpected $end
> person.each do |person|
>
> did anyone come across this before? how do i continue to next line?
> did not see this problem in irb or rails script/console.
--
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.