strange selection of generator script

Hi guys. It's not like bug - more like strange behavior i dealed with. Situation:
I updated my app from rails 2.3.5 like that:

    * Created new app in rails 3
    * Overwritten it by my files(2.3.5)
    * Changed files to correspond new rails 3 standarts(like new routes etc.)

In RubyMine was a problem because i didnt deleted old files(generate,plugin etc) in scripts directory
and RubyMine tryed to run old generator script(dunno why if I attached 3.0.0 rails) when should use new syntax(rails g), and displayed(ofc) error.
Maybe application should somehow figure out what version of rails i have and search for proper generator?

Please sign in to leave a comment.