:w !ruby -cw
-:4: parse error, unexpected '}', expecting kEND
Student.find(:all).map {|s| s.age }}.flatten.uniq.sort
^
shell returned 1
Hit ENTER or type command to continue
If you're using TextMate on a Mac, you can set up a keyboard shortcut that filters the file you're working on through a command such as ruby -cw. If you're not using a text editor or IDE that offers this kind of flexibility, you should consider switching to something like Vim, TextMate, or Emacs, and learning how to customize your editor.
No comments:
Post a Comment