This project is archived and is in readonly mode.
[Rails 3 RC2] Rails fails to load controller whose name consists of a single character.
Reported by Vikrant Chaudhary | August 28th, 2010 @ 11:05 AM
Steps to reproduce
rails new example
cd example
rails g controller H
rails g controller Hello
- Open Gemfile and add
gem 'yard'
-
rails c
Loading development environment (Rails 3.0.0.rc2) irb(main):001:0> HelloController => HelloController irb(main):002:0> HController NameError: uninitialized constant HController
from (irb):2
My yard version is 0.5.8
And Ruby - ruby 1.8.7 (2010-01-10 patchlevel 249)
[x86_64-linux]
Comments and changes to this ticket
-
Vikrant Chaudhary August 28th, 2010 @ 11:09 AM
The
irb
output isn't formatted nicely in above question. Here formatting again by indenting each line with a tab instead of 4 spaces that I did before.Loading development environment (Rails 3.0.0.rc2) irb(main):001:0> HelloController => HelloController irb(main):002:0> HController NameError: uninitialized constant HController from (irb):2
-
Marjan Krekoten' August 28th, 2010 @ 11:58 AM
This is yard bug. yard gem defines it's own extensions to String and other classes. Their implementation of underscore method doesn't handle situations when there are several capital letters one by one.
-
José Valim August 28th, 2010 @ 02:43 PM
- State changed from new to invalid
- Importance changed from to Low
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>