From: Zhao Yi Date: 2008-09-01T17:59:55+09:00 Subject: Re: How to make a string upcase? Sebastian Hungerecker wrote: > Zhao Yi wrote: >> I want to change a string to upcase like below: >> >> name=@value.upcase >> >> But got this error: dynamic constant assignment > > Not for that code you didn't. > If it was Name with a capital N and if the line was inside a method, > then > you'd get that error. And you'd get that because you're not supposed to > assign constants from within methods (you can get around that, but most > of > the times, you shouldn't). > > HTH, > Sebastian oh, it is upcase. thanks. -- Posted via http://www.ruby-forum.com/.