Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7955 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Console environment load broken when RAILS_ROOT contains spaces

Reported by: NickHowell Assigned to: bitsweat
Priority: normal Milestone: 1.x
Component: Railties Version: edge
Severity: normal Keywords: console environment RAILS_ROOT
Cc:

Description

script/console is broken for RAILS_ROOTs that contain spaces because the IRB command in railties/lib/commands/console.rb doesn't quote RAILS_ROOT when passed as an argument (http://dev.rubyonrails.org/browser/trunk/railties/lib/commands/console.rb#L13).

I wasn't sure how to write a test for this; any ideas?

Attachments

quoted_environment.diff (1.0 kB) - added by NickHowell on 03/31/07 20:17:49.
Just adds quotes around RAILS_ROOT in the IRB command.

Change History

03/31/07 20:17:49 changed by NickHowell

  • attachment quoted_environment.diff added.

Just adds quotes around RAILS_ROOT in the IRB command.

04/09/07 11:16:41 changed by chuyeow

  • owner changed from core to bitsweat.

Yup this is a very annoying bug on Edge Rails. Please fix this soonish ;)

04/09/07 17:34:40 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.