From jamie at nospam.com Mon Apr 2 05:00:16 2007 From: jamie at nospam.com (Jamie) Date: Mon, 2 Apr 2007 11:00:16 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> Message-ID: <8fa4b37a36163981db41adb354431e56@ruby-forum.com> FYI everyone this is a Facebook application question -- Posted via http://www.ruby-forum.com/. From sunzhoujian at gmail.com Mon Apr 2 10:21:11 2007 From: sunzhoujian at gmail.com (wtt) Date: Mon, 2 Apr 2007 16:21:11 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: <8fa4b37a36163981db41adb354431e56@ruby-forum.com> References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> Message-ID: <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> Jamie wrote: > FYI everyone this is a Facebook application question That's true. The power of community is for learning and solving problem together. :) Right? -- Posted via http://www.ruby-forum.com/. From bla at nospam.com Mon Apr 2 15:00:51 2007 From: bla at nospam.com (Guest) Date: Mon, 2 Apr 2007 21:00:51 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> Message-ID: <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> > That's true. The power of community is for learning and solving problem > together. :) Right? Not if the point is to help somebody get a job that they may not be qualified for -- Posted via http://www.ruby-forum.com/. From sunzhoujian at gmail.com Mon Apr 2 15:34:57 2007 From: sunzhoujian at gmail.com (wtt) Date: Mon, 2 Apr 2007 21:34:57 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> Message-ID: <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> I guess you are working for facebook right now. Do you really think this kind of problem will help the daily software engineer work in your company? Often times it totally depends on if the candidates saw that kind of questions or not. Isn't that a high qualification and smart of a person if he knows how to find the solution quickly and learn quickly from experienced people? As a sofware engineer, will your honestly admit that the programming experience ,software development experience and business knowledge are the most important factors for an excellent software engineer, right? Bill Gates is one example,Mark is another example, right? Will they spend a lot of times to solve this kind of problems? It could be when they are in school, but I am seriously doubt once the real work started and there are a lot of pressures from all aspects... Guest wrote: >> That's true. The power of community is for learning and solving problem >> together. :) Right? > > Not if the point is to help somebody get a job that they may not be > qualified for -- Posted via http://www.ruby-forum.com/. From sunzhoujian at gmail.com Mon Apr 2 15:39:38 2007 From: sunzhoujian at gmail.com (wtt) Date: Mon, 2 Apr 2007 21:39:38 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> Message-ID: Actually I knew the answer already, but I don't want to disclose here. James, if you are the person, you should seriously think of more related questions to test a candidate, think that in the long term development of facebook, looking for the right skills, the ability to learn and the passion for work. Those are most important things! Don't use the craps until you can articulate the objective of this kind of questions toward work, otherwise, there may have another dot com failure awaiting... Guest wrote: >> That's true. The power of community is for learning and solving problem >> together. :) Right? > > Not if the point is to help somebody get a job that they may not be > qualified for -- Posted via http://www.ruby-forum.com/. From bla at nospam.com Mon Apr 2 18:53:20 2007 From: bla at nospam.com (Guest) Date: Tue, 3 Apr 2007 00:53:20 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> Message-ID: <57777a295a2bf0a4ac48f92f50fe604e@ruby-forum.com> wtt wrote: > I guess you are working for facebook right now. Nope > Do you really think this > kind of problem will help the daily software engineer work in your > company? Nope, but its a good litmus test. > Often times it totally depends on if the candidates saw that kind of > questions > or not. Isn't that a high qualification and smart of a person if he > knows how to find the solution quickly and learn quickly from > experienced people? There's a difference between being able to use resources well and just asking for the answer, which is what you were doing. (On multiple forums across the internet (Wilmott Forums, DevMountain Forums, etc.) -- Posted via http://www.ruby-forum.com/. From sunzhoujian at gmail.com Mon Apr 2 19:00:21 2007 From: sunzhoujian at gmail.com (wtt) Date: Tue, 3 Apr 2007 01:00:21 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: <57777a295a2bf0a4ac48f92f50fe604e@ruby-forum.com> References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> <57777a295a2bf0a4ac48f92f50fe604e@ruby-forum.com> Message-ID: That's one of the quick ways to get the answer, right? That's why I got the guidance quikly. Hard work and preparation is always the way to learn... Actually, some replies, as you may know, questions the intention and effectiveness of the orginal puzzle. I agree with them, unless you have worked in that area for a while, sometimes it is totally senseless to ask this kind of question to a candidate... And I don't see anything wrong to look into this issue and ask questions. If you hire a new people to work for, probably you expect he/she to ask questions whenever he/she is not clear to be quickly get productive, right? There is really nothing wrong to ask, it is another way to learn,IMHO. Guest wrote: > wtt wrote: >> I guess you are working for facebook right now. > > Nope > >> Do you really think this >> kind of problem will help the daily software engineer work in your >> company? > > Nope, but its a good litmus test. > >> Often times it totally depends on if the candidates saw that kind of >> questions >> or not. Isn't that a high qualification and smart of a person if he >> knows how to find the solution quickly and learn quickly from >> experienced people? > > There's a difference between being able to use resources well and just > asking for the answer, which is what you were doing. (On multiple forums > across the internet (Wilmott Forums, DevMountain Forums, etc.) -- Posted via http://www.ruby-forum.com/. From sunzhoujian at gmail.com Mon Apr 2 19:03:45 2007 From: sunzhoujian at gmail.com (wtt) Date: Tue, 3 Apr 2007 01:03:45 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> <57777a295a2bf0a4ac48f92f50fe604e@ruby-forum.com> Message-ID: <08a6bd00906c0bdc12f859094f903ba7@ruby-forum.com> > There's a difference between being able to use resources well and just > asking for the answer, which is what you were doing. (On multiple forums > across the internet (Wilmott Forums, DevMountain Forums, etc.) On the other hand, it really demonstrates why capital market values google for so much. But I still believe there is way for google to improve. I couldn't get good answer from google on this matter, so I diligently to choose proper community to ask to.. Anything wrong with that? wtt wrote: > That's one of the quick ways to get the answer, right? That's why I got > the guidance quikly. Hard work and preparation is always the way to > learn... > > Actually, some replies, as you may know, questions the intention and > effectiveness of the orginal puzzle. I agree with them, unless you have > worked in that area for a while, sometimes it is totally senseless to > ask this kind of question to a candidate... > > And I don't see anything wrong to look into this issue and ask > questions. If you hire a new people to work for, probably you expect > he/she to ask questions whenever he/she is not clear to be quickly get > productive, right? There is really nothing wrong to ask, it is another > way to learn,IMHO. > > > > Guest wrote: >> wtt wrote: >>> I guess you are working for facebook right now. >> >> Nope >> >>> Do you really think this >>> kind of problem will help the daily software engineer work in your >>> company? >> >> Nope, but its a good litmus test. >> >>> Often times it totally depends on if the candidates saw that kind of >>> questions >>> or not. Isn't that a high qualification and smart of a person if he >>> knows how to find the solution quickly and learn quickly from >>> experienced people? >> >> There's a difference between being able to use resources well and just >> asking for the answer, which is what you were doing. (On multiple forums >> across the internet (Wilmott Forums, DevMountain Forums, etc.) -- Posted via http://www.ruby-forum.com/. From bla at nospam.com Mon Apr 2 19:15:30 2007 From: bla at nospam.com (Guest) Date: Tue, 3 Apr 2007 01:15:30 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: <08a6bd00906c0bdc12f859094f903ba7@ruby-forum.com> References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> <57777a295a2bf0a4ac48f92f50fe604e@ruby-forum.com> <08a6bd00906c0bdc12f859094f903ba7@ruby-forum.com> Message-ID: <4e12c35a8de8d9ddca6fa7adb00819dd@ruby-forum.com> wtt wrote: >> There's a difference between being able to use resources well and just >> asking for the answer, which is what you were doing. (On multiple forums >> across the internet (Wilmott Forums, DevMountain Forums, etc.) > > On the other hand, it really demonstrates why capital market values > google > for so much. But I still believe there is way for google to improve. I > couldn't get good answer from google on this matter, so I diligently to > choose proper community to ask to.. Anything wrong with that? If Google could solve random programming problems there would be no need for programmers. -- Posted via http://www.ruby-forum.com/. From sunzhoujian at gmail.com Mon Apr 2 19:21:17 2007 From: sunzhoujian at gmail.com (wtt) Date: Tue, 3 Apr 2007 01:21:17 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: <4e12c35a8de8d9ddca6fa7adb00819dd@ruby-forum.com> References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> <57777a295a2bf0a4ac48f92f50fe604e@ruby-forum.com> <08a6bd00906c0bdc12f859094f903ba7@ruby-forum.com> <4e12c35a8de8d9ddca6fa7adb00819dd@ruby-forum.com> Message-ID: <964d691589e1cc3c5a0530897919cea8@ruby-forum.com> Guest wrote: > wtt wrote: >>> There's a difference between being able to use resources well and just >>> asking for the answer, which is what you were doing. (On multiple forums >>> across the internet (Wilmott Forums, DevMountain Forums, etc.) >> >> On the other hand, it really demonstrates why capital market values >> google >> for so much. But I still believe there is way for google to improve. I >> couldn't get good answer from google on this matter, so I diligently to >> choose proper community to ask to.. Anything wrong with that? > > If Google could solve random programming problems there would be no need > for programmers. But it takes a programmer to use google to find the right information, it takes a programmer to learn that information, it takes a programmer to code that to the system... In the future, there may have artificial software, but it takes time to realize that... However, the human nature is to make things simple instead of complex. So we can focus on solving next problems... If you look at the history of Internet, you will find things is becoming more and more easy, right? If facebook want to test your assemble language, while you are applying for a Php or Ruby programmer position, do you think that is reasonable? -- Posted via http://www.ruby-forum.com/. From bla at nospam.com Mon Apr 2 19:26:46 2007 From: bla at nospam.com (Guest) Date: Tue, 3 Apr 2007 01:26:46 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: <964d691589e1cc3c5a0530897919cea8@ruby-forum.com> References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> <57777a295a2bf0a4ac48f92f50fe604e@ruby-forum.com> <08a6bd00906c0bdc12f859094f903ba7@ruby-forum.com> <4e12c35a8de8d9ddca6fa7adb00819dd@ruby-forum.com> <964d691589e1cc3c5a0530897919cea8@ruby-forum.com> Message-ID: <40daef4317d55f086eba844d503e71ca@ruby-forum.com> If facebook want to test your assemble > language, while you are applying for a Php or Ruby programmer position, > do you think that is reasonable? Anyone can learn a random programming language, the same algorithms and logical thinking are applicable across languages. I think thats what the test is about. -- Posted via http://www.ruby-forum.com/. From sunzhoujian at gmail.com Mon Apr 2 19:36:16 2007 From: sunzhoujian at gmail.com (wtt) Date: Tue, 3 Apr 2007 01:36:16 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: <40daef4317d55f086eba844d503e71ca@ruby-forum.com> References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> <57777a295a2bf0a4ac48f92f50fe604e@ruby-forum.com> <08a6bd00906c0bdc12f859094f903ba7@ruby-forum.com> <4e12c35a8de8d9ddca6fa7adb00819dd@ruby-forum.com> <964d691589e1cc3c5a0530897919cea8@ruby-forum.com> <40daef4317d55f086eba844d503e71ca@ruby-forum.com> Message-ID: Guest wrote: > If facebook want to test your assemble >> language, while you are applying for a Php or Ruby programmer position, >> do you think that is reasonable? > > Anyone can learn a random programming language, the same algorithms and > logical thinking are applicable across languages. I think thats what the > test is about. But this puzzle will not test your logical thinking, right? It is specific geared for some unicode knowledge, right? You guys probably need find some Microsoft or D.E. Show questions to test the smartest of a candidate. :) BTW, if possible, could you display your real name? What group are you working for facebook? -- Posted via http://www.ruby-forum.com/. From bla at nospam.com Mon Apr 2 19:41:57 2007 From: bla at nospam.com (Jamie) Date: Tue, 3 Apr 2007 01:41:57 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> <57777a295a2bf0a4ac48f92f50fe604e@ruby-forum.com> <08a6bd00906c0bdc12f859094f903ba7@ruby-forum.com> <4e12c35a8de8d9ddca6fa7adb00819dd@ruby-forum.com> <964d691589e1cc3c5a0530897919cea8@ruby-forum.com> <40daef4317d55f086eba844d503e71ca@ruby-forum.com> Message-ID: > But this puzzle will not test your logical thinking, right? It is > specific > geared for some unicode knowledge, right? > > You guys probably need find some Microsoft or D.E. Show questions to > test the smartest of a candidate. :) > > BTW, if possible, could you display your real name? What group are you > working > for facebook? Jamie - Not working for Facebook - -- Posted via http://www.ruby-forum.com/. From sunzhoujian at gmail.com Mon Apr 2 19:49:57 2007 From: sunzhoujian at gmail.com (wtt) Date: Tue, 3 Apr 2007 01:49:57 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> <57777a295a2bf0a4ac48f92f50fe604e@ruby-forum.com> <08a6bd00906c0bdc12f859094f903ba7@ruby-forum.com> <4e12c35a8de8d9ddca6fa7adb00819dd@ruby-forum.com> <964d691589e1cc3c5a0530897919cea8@ruby-forum.com> <40daef4317d55f086eba844d503e71ca@ruby-forum.com> Message-ID: <41aead4977adf18a32cd59bd08459228@ruby-forum.com> Jamie wrote: >> But this puzzle will not test your logical thinking, right? It is >> specific >> geared for some unicode knowledge, right? >> >> You guys probably need find some Microsoft or D.E. Show questions to >> test the smartest of a candidate. :) >> >> BTW, if possible, could you display your real name? What group are you >> working >> for facebook? > > Jamie > - Not working for Facebook - Personally I believe it is great to learn from a community like this one if I want to learn and practice this particular language, so you have the chance to work in a virtual team worldwide and you can contribute sonce you have learned a lot. -- Posted via http://www.ruby-forum.com/. From bla at nospam.com Mon Apr 2 19:56:43 2007 From: bla at nospam.com (Jamie) Date: Tue, 3 Apr 2007 01:56:43 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: <41aead4977adf18a32cd59bd08459228@ruby-forum.com> References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> <57777a295a2bf0a4ac48f92f50fe604e@ruby-forum.com> <08a6bd00906c0bdc12f859094f903ba7@ruby-forum.com> <4e12c35a8de8d9ddca6fa7adb00819dd@ruby-forum.com> <964d691589e1cc3c5a0530897919cea8@ruby-forum.com> <40daef4317d55f086eba844d503e71ca@ruby-forum.com> <41aead4977adf18a32cd59bd08459228@ruby-forum.com> Message-ID: > Personally I believe it is great to learn from a community like this one > if I want to learn and practice this particular language, so you have > the > chance to work in a virtual team worldwide and you can contribute sonce > you > have learned a lot. I agree, but there is a large difference between asking for answers and proper collaboration. -- Posted via http://www.ruby-forum.com/. From sunzhoujian at gmail.com Mon Apr 2 20:11:57 2007 From: sunzhoujian at gmail.com (wtt) Date: Tue, 3 Apr 2007 02:11:57 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> <57777a295a2bf0a4ac48f92f50fe604e@ruby-forum.com> <08a6bd00906c0bdc12f859094f903ba7@ruby-forum.com> <4e12c35a8de8d9ddca6fa7adb00819dd@ruby-forum.com> <964d691589e1cc3c5a0530897919cea8@ruby-forum.com> <40daef4317d55f086eba844d503e71ca@ruby-forum.com> <41aead4977adf18a32cd59bd08459228@ruby-forum.com> Message-ID: <0e43a83bd497fab89b348936b12c6921@ruby-forum.com> Jamie wrote: >> Personally I believe it is great to learn from a community like this one >> if I want to learn and practice this particular language, so you have >> the >> chance to work in a virtual team worldwide and you can contribute sonce >> you >> have learned a lot. > > I agree, but there is a large difference between asking for answers and > proper collaboration. Essentially, there is no difference. you can not give any answer, if you don't know. Or you can give some guidance if you have some clue. Personally I didn't see any difference, however, you can interprete on your way, though... -- Posted via http://www.ruby-forum.com/. From me at nospam.com Mon Apr 2 22:19:24 2007 From: me at nospam.com (OB) Date: Tue, 3 Apr 2007 04:19:24 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: <0e43a83bd497fab89b348936b12c6921@ruby-forum.com> References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> <57777a295a2bf0a4ac48f92f50fe604e@ruby-forum.com> <08a6bd00906c0bdc12f859094f903ba7@ruby-forum.com> <4e12c35a8de8d9ddca6fa7adb00819dd@ruby-forum.com> <964d691589e1cc3c5a0530897919cea8@ruby-forum.com> <40daef4317d55f086eba844d503e71ca@ruby-forum.com> <41aead4977adf18a32cd59bd08459228@ruby-forum.com> <0e43a83bd497fab89b348936b12c6921@ruby-forum.com> Message-ID: <00d064e0d0b0eb4716f0b2b4a3aaac20@ruby-forum.com> >Actually I knew the answer already, but I don't want to disclose here. hahahahahahahah, yeah right -- Posted via http://www.ruby-forum.com/. From sunzhoujian at gmail.com Mon Apr 2 22:44:26 2007 From: sunzhoujian at gmail.com (wtt) Date: Tue, 3 Apr 2007 04:44:26 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: <00d064e0d0b0eb4716f0b2b4a3aaac20@ruby-forum.com> References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> <57777a295a2bf0a4ac48f92f50fe604e@ruby-forum.com> <08a6bd00906c0bdc12f859094f903ba7@ruby-forum.com> <4e12c35a8de8d9ddca6fa7adb00819dd@ruby-forum.com> <964d691589e1cc3c5a0530897919cea8@ruby-forum.com> <40daef4317d55f086eba844d503e71ca@ruby-forum.com> <41aead4977adf18a32cd59bd08459228@ruby-forum.com> <0e43a83bd497fab89b348936b12c6921@ruby-forum.com> <00d064e0d0b0eb4716f0b2b4a3aaac20@ruby-forum.com> Message-ID: <2fde6890454b5d5eb83cc8bf05bb9829@ruby-forum.com> OB wrote: >>Actually I knew the answer already, but I don't want to disclose here. > > hahahahahahahah, yeah right That's true. Someone mentioned that to me elsewhere. That is one shining example of my quick learning and I would appreciate if you have better way to learn new things... -- Posted via http://www.ruby-forum.com/. From asdf at asdf.com Thu Apr 5 17:37:18 2007 From: asdf at asdf.com (0xE3) Date: Thu, 5 Apr 2007 23:37:18 +0200 Subject: [Rails I18n] Easy Puzzle Mountain problem In-Reply-To: <00d064e0d0b0eb4716f0b2b4a3aaac20@ruby-forum.com> References: <612f46cfd17f46b384849a070fea1166@ruby-forum.com> <8fa4b37a36163981db41adb354431e56@ruby-forum.com> <0780ec793a2e151a66205fc54047b3de@ruby-forum.com> <4c7432f9df037f3765f7412e852a12d7@ruby-forum.com> <1bb123fefcaf43bb1312c9418cea4f59@ruby-forum.com> <57777a295a2bf0a4ac48f92f50fe604e@ruby-forum.com> <08a6bd00906c0bdc12f859094f903ba7@ruby-forum.com> <4e12c35a8de8d9ddca6fa7adb00819dd@ruby-forum.com> <964d691589e1cc3c5a0530897919cea8@ruby-forum.com> <40daef4317d55f086eba844d503e71ca@ruby-forum.com> <41aead4977adf18a32cd59bd08459228@ruby-forum.com> <0e43a83bd497fab89b348936b12c6921@ruby-forum.com> <00d064e0d0b0eb4716f0b2b4a3aaac20@ruby-forum.com> Message-ID: <59b3fb668ffe27dfe198b0c81879a517@ruby-forum.com> OB wrote: >>Actually I knew the answer already, but I don't want to disclose here. > > hahahahahahahah, yeah right The answer to the question is extremely simple to anyone who understands UTF-8. It's clearly not so much a test to find "who is qualified" as to weed out who is definitely UNqualified - it's a question that any good candidate can answer easily, but being able to answer it doesn't necessarily mean a candidate is good. The second part seems to test actual intelligence and puzzle-solving ability. http://www.facebook.com/jobs_puzzles/?puzzle_id=6 -- Posted via http://www.ruby-forum.com/. From deliverable at gmail.com Fri Apr 6 04:57:46 2007 From: deliverable at gmail.com (Alexy Khrabrov) Date: Fri, 6 Apr 2007 10:57:46 +0200 Subject: [Rails I18n] language version of rhtml templates Message-ID: <51206803179a0111f91261eb9f70e412@ruby-forum.com> I have a rails app, the lovely opinion forum, I'd like to globalize -- it uses a bunch of rhtml templates with hard-coded English text. Should I change all the embedded text into the ugly <%= 'Msg'.t %> references with globalize, or rather can I gave language-specific rhtml files? I realize it may be more work and fuzz to keep them in sync though... Now I was just looking at options and GNU suggests gettext -- is globalize using gettext or is it an alternative? Cheers, Alexy -- Posted via http://www.ruby-forum.com/. From jordan.2323 at yahoo.com.cn Fri Apr 6 09:50:56 2007 From: jordan.2323 at yahoo.com.cn (Jordan 2323) Date: Fri, 6 Apr 2007 15:50:56 +0200 Subject: [Rails I18n] wholesale clothes nike jordan shoes air force1 dunk Message-ID: <0d1b49d56536b50f27a7d418f05b5220@ruby-forum.com> (www.sell-jordan-shoes.com) Feipeng shoes trade co.,ltd.is a wholesaler specialized in various world brand products.such as Lacoste bbc t-shirts,bape,EVISU,BAPE,RMC,POLO,BBC,LRG,10deep,Red Monkey jeans,lv Gucci handbags,Adidas,Nike(Jordan I-XXI, Air Max 90/91/95/97/03/04/05/06/TN/TN6,Shox TL/TL2TL3/Turbo/NZ/R4/R5/R6,Air Force 1,dunk),Timberland,prada,Bape,etc You are welcome to enter our website for learn more information of our products. please visit our website: www.sell-jordan-shoes.com or chat with me on MSN sell_jordan_shoes at hotmail.com or email to me: sell_jordanshoes at yahoo.com.cn cheap hot air jordan shoes-air force1-max tn-dunk-adidas cheap hot air jordan shoes-air force1-max tn-dunk-adidas air jordan shoes cheap price-max tn-dunk-bape-jeans air jordan shoes cheap price-max tn-dunk-bape-jeans sell jordan shoes-nike jordan-af1-dunk-air max tn sell jordan shoes-nike jordan-af1-dunk-air max tn nike shoes hot sell-jeans-shoes-low price nike shoes hot sell-jeans-shoes-low price http://www.sell-jordan-shoes.com/Nike-jordan/7.html http://www.sell-jordan-shoes.com/nike-other/air-force-1.html http://www.sell-jordan-shoes.com/Other-brand/Adidas.html http://www.sell-jordan-shoes.com/brand-clothes/EVISU.html http://www.sell-jordan-shoes.com/nike-air-max/max95.html http://www.sell-jordan-shoes.com/Other-brand/BAPE-STAR.html http://www.sell-jordan-shoes.com/nike-air-max/Tn.html sell-jordan-shoes&nike shoes-max tn&bape bbc bmc jeans -- Posted via http://www.ruby-forum.com/. From jordan.2323 at yahoo.com.cn Fri Apr 6 09:51:23 2007 From: jordan.2323 at yahoo.com.cn (Jordan 2323) Date: Fri, 6 Apr 2007 15:51:23 +0200 Subject: [Rails I18n] sell-nike-jordan-air force1-max tn-dunk-clothes Message-ID: <63502a00fcdc763b3763a7285df709ac@ruby-forum.com> wholesale clothes nike jordan shoes air force1 dunk (www.sell-jordan-shoes.com) Feipeng shoes trade co.,ltd.is a wholesaler specialized in various world brand products.such as Lacoste bbc t-shirts,bape,EVISU,BAPE,RMC,POLO,BBC,LRG,10deep,Red Monkey jeans,lv Gucci handbags,Adidas,Nike(Jordan I-XXI, Air Max 90/91/95/97/03/04/05/06/TN/TN6,Shox TL/TL2TL3/Turbo/NZ/R4/R5/R6,Air Force 1,dunk),Timberland,prada,Bape,etc You are welcome to enter our website for learn more information of our products. please visit our website: www.sell-jordan-shoes.com or chat with me on MSN sell_jordan_shoes at hotmail.com or email to me: sell_jordanshoes at yahoo.com.cn cheap hot air jordan shoes-air force1-max tn-dunk-adidas cheap hot air jordan shoes-air force1-max tn-dunk-adidas air jordan shoes cheap price-max tn-dunk-bape-jeans air jordan shoes cheap price-max tn-dunk-bape-jeans sell jordan shoes-nike jordan-af1-dunk-air max tn sell jordan shoes-nike jordan-af1-dunk-air max tn nike shoes hot sell-jeans-shoes-low price nike shoes hot sell-jeans-shoes-low price http://www.sell-jordan-shoes.com/Nike-jordan/7.html http://www.sell-jordan-shoes.com/nike-other/air-force-1.html http://www.sell-jordan-shoes.com/Other-brand/Adidas.html http://www.sell-jordan-shoes.com/brand-clothes/EVISU.html http://www.sell-jordan-shoes.com/nike-air-max/max95.html http://www.sell-jordan-shoes.com/Other-brand/BAPE-STAR.html http://www.sell-jordan-shoes.com/nike-air-max/Tn.html sell-jordan-shoes&nike shoes-max tn&bape bbc bmc jeans france italy -- Posted via http://www.ruby-forum.com/. From jordan.2323 at yahoo.com.cn Fri Apr 6 09:51:59 2007 From: jordan.2323 at yahoo.com.cn (Jordan 2323) Date: Fri, 6 Apr 2007 15:51:59 +0200 Subject: [Rails I18n] sell-jordan-shoes-air force1-nike-dunk-clothes Message-ID: (www.sell-jordan-shoes.com) Feipeng shoes trade co.,ltd.is a wholesaler specialized in various world brand products.such as Lacoste bbc t-shirts,bape,EVISU,BAPE,RMC,POLO,BBC,LRG,10deep,Red Monkey jeans,lv Gucci handbags,Adidas,Nike(Jordan I-XXI, Air Max 90/91/95/97/03/04/05/06/TN/TN6,Shox TL/TL2TL3/Turbo/NZ/R4/R5/R6,Air Force 1,dunk),Timberland,prada,Bape,etc You are welcome to enter our website for learn more information of our products. please visit our website: www.sell-jordan-shoes.com or chat with me on MSN sell_jordan_shoes at hotmail.com or email to me: sell_jordanshoes at yahoo.com.cn cheap hot air jordan shoes-air force1-max tn-dunk-adidas cheap hot air jordan shoes-air force1-max tn-dunk-adidas air jordan shoes cheap price-max tn-dunk-bape-jeans air jordan shoes cheap price-max tn-dunk-bape-jeans sell jordan shoes-nike jordan-af1-dunk-air max tn sell jordan shoes-nike jordan-af1-dunk-air max tn nike shoes hot sell-jeans-shoes-low price nike shoes hot sell-jeans-shoes-low price http://www.sell-jordan-shoes.com/Nike-jordan/7.html http://www.sell-jordan-shoes.com/nike-other/air-force-1.html http://www.sell-jordan-shoes.com/Other-brand/Adidas.html http://www.sell-jordan-shoes.com/brand-clothes/EVISU.html http://www.sell-jordan-shoes.com/nike-air-max/max95.html http://www.sell-jordan-shoes.com/Other-brand/BAPE-STAR.html http://www.sell-jordan-shoes.com/nike-air-max/Tn.html sell-jordan-shoes&nike shoes-max tn&bape bbc -- Posted via http://www.ruby-forum.com/. From moni.sm at gmail.com Fri Apr 13 06:48:10 2007 From: moni.sm at gmail.com (Monica Saiz) Date: Fri, 13 Apr 2007 12:48:10 +0200 Subject: [Rails I18n] globalize newbie In-Reply-To: <6b6419750610131922s14dc6dd0hb9523b34dccd72e4@mail.gmail.com> References: <6b6419750610131922s14dc6dd0hb9523b34dccd72e4@mail.gmail.com> Message-ID: <09b8091b774471fbca74c76bd0fec965@ruby-forum.com> Hi Patrick, I'm exactly in the same situation than you!!!!! If someone could help us.. I've looked at a lot of tutorials but I can't make it works. Does someone has a good tutorial which explain that step by step? THANKS! Monica -- Posted via http://www.ruby-forum.com/. From joshmh at gmail.com Fri Apr 13 07:14:57 2007 From: joshmh at gmail.com (Joshua Harvey) Date: Fri, 13 Apr 2007 14:14:57 +0300 Subject: [Rails I18n] globalize newbie In-Reply-To: <09b8091b774471fbca74c76bd0fec965@ruby-forum.com> References: <6b6419750610131922s14dc6dd0hb9523b34dccd72e4@mail.gmail.com> <09b8091b774471fbca74c76bd0fec965@ruby-forum.com> Message-ID: <3527dd260704130414y78f29937t78053b42db5e1935@mail.gmail.com> Hi guys, and welcome aboard! You'll find the answer in Sven's excellent tutorial: http://www.artweb-design.de/2006/11/10/globalize-five-minutes-instant-overview It's under the heading "How to add ViewTranslations": lang = Language.pick('de-DE') Locale.set_translation('Welcome', lang, 'Willkommen') The idea is to create a web interface in your app that will call this code and allow the translator to translate your site online. Best, Josh On 4/13/07, Monica Saiz wrote: > Hi Patrick, > > I'm exactly in the same situation than you!!!!! > If someone could help us.. > I've looked at a lot of tutorials but I can't make it works. Does > someone has a good tutorial which explain that step by step? > > THANKS! > > Monica > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Railsi18n-discussion mailing list > Railsi18n-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/railsi18n-discussion > From bk at benjaminkrause.com Fri Apr 13 07:01:11 2007 From: bk at benjaminkrause.com (Benjamin Krause) Date: Fri, 13 Apr 2007 13:01:11 +0200 (CEST) Subject: [Rails I18n] language version of rhtml templates In-Reply-To: <51206803179a0111f91261eb9f70e412@ruby-forum.com> References: <51206803179a0111f91261eb9f70e412@ruby-forum.com> Message-ID: <52646.212.227.62.4.1176462071.squirrel@orkland.homeunix.org> Hey.. > Should I change all the embedded text into the ugly <%= 'Msg'.t %> > references with globalize, or rather can I gave language-specific rhtml > files? I realize it may be more work and fuzz to keep them in sync > though... Use separate templates, it's easier .. > Now I was just looking at options and GNU suggests gettext -- is > globalize using gettext or is it an alternative? there is a separate gettext rails localisation plugin, globlize works a little different but has more features like model translation.. we use globalize. Cheers, Ben omdb.org From svenfuchs at artweb-design.de Fri Apr 13 07:08:52 2007 From: svenfuchs at artweb-design.de (Sven Fuchs) Date: Fri, 13 Apr 2007 13:08:52 +0200 Subject: [Rails I18n] globalize newbie In-Reply-To: <09b8091b774471fbca74c76bd0fec965@ruby-forum.com> References: <6b6419750610131922s14dc6dd0hb9523b34dccd72e4@mail.gmail.com> <09b8091b774471fbca74c76bd0fec965@ruby-forum.com> Message-ID: <6D0C4C9B-4421-45D3-9A1C-32ED8C97CC54@artweb-design.de> The answer is that there are many answers :) Basically your translations are stored in a database table (named globalize_translations). So what you are looking for is a way to edit rows in the database table. You could edit the rows directly by using a console client, a database web interface or gui client. You can build your own translation manager web interface on Rails - which is what Szymek guides you through here: Or you can add translations "manually" through your own code (i.e. in the script/console). I've mentioned an example of this here: Hope this helps to get you started. Am 13.04.2007 um 12:48 schrieb Monica Saiz: > Hi Patrick, > > I'm exactly in the same situation than you!!!!! > If someone could help us.. > I've looked at a lot of tutorials but I can't make it works. Does > someone has a good tutorial which explain that step by step? > > THANKS! > > Monica > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Railsi18n-discussion mailing list > Railsi18n-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/railsi18n-discussion -- sven fuchs fon: +49 (58 45) 98 89 58 artweb design fax: +49 (58 45) 98 89 57 breite stra?e 65 www: http://www.artweb-design.de de-29468 bergen mail: svenfuchs at artweb-design.de From moni.sm at gmail.com Fri Apr 13 13:21:44 2007 From: moni.sm at gmail.com (Monica Saiz) Date: Fri, 13 Apr 2007 19:21:44 +0200 Subject: [Rails I18n] globalize newbie In-Reply-To: <6D0C4C9B-4421-45D3-9A1C-32ED8C97CC54@artweb-design.de> References: <6b6419750610131922s14dc6dd0hb9523b34dccd72e4@mail.gmail.com> <09b8091b774471fbca74c76bd0fec965@ruby-forum.com> <6D0C4C9B-4421-45D3-9A1C-32ED8C97CC54@artweb-design.de> Message-ID: <08666026cc4fc47244a0fed0173271f3@ruby-forum.com> Thanks for the answer! I had already reached that point! Yes, my database is working with the proper table and translations, and I've checked it with the script/console, etc.. But my problem is that when I write in my view something like <%= "Name".t%>, to get the proper string "name" in the language I specify before.. (and is stored in my data base, of course, in the translations table). But.. WHERE and WHEN have I specified the language? (Locale.set("en-Us") for example)??? Could someone clarify my doubts..? What am I missing in the process? Thanks a lot, Monica -- Posted via http://www.ruby-forum.com/. From yaroska at yahoo.com Tue Apr 17 19:51:26 2007 From: yaroska at yahoo.com (yaroska) Date: Wed, 18 Apr 2007 01:51:26 +0200 Subject: [Rails I18n] GetText problems with .set_error_message_title In-Reply-To: References: Message-ID: neongrau __ wrote: > but i never ever get the translated strings :( > i just always get the strings within the N_('') function. > but the %{record} inside gets properly translated. I have the same problem (only one difference Linux instead of Windows). Can somebody explain what's going on? And how to fix it. Please. Thanks a lot. -- Posted via http://www.ruby-forum.com/. From carol.i at libero.it Wed Apr 25 10:09:25 2007 From: carol.i at libero.it (Carol) Date: Wed, 25 Apr 2007 16:09:25 +0200 Subject: [Rails I18n] Gloc problem Message-ID: Hi! I am new with ruby and with rails. I have installed Gloc plugin from the svn but when I try to run webrick server I get this error: C:/Programmi/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:266:in `load_missing_constant': uninitialized constant GLoc (NameError) from C:/Programmi/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:452:in `const_missing' from C:/Programmi/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:464:in `const_missing' from ./script/../config/../config/environment.rb:16 from C:/Programmi/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:41:in `run' from ./script/../config/../config/environment.rb:13 from C:/Programmi/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from C:/Programmi/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from C:/Programmi/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require' ... 8 levels... from C:/Programmi/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 from C:/Programmi/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from C:/Programmi/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from script/server:3 Can someone help me? Thanks! -- Posted via http://www.ruby-forum.com/. From Sayali_S_K at hotmail.com Thu Apr 26 03:54:28 2007 From: Sayali_S_K at hotmail.com (sayali) Date: Thu, 26 Apr 2007 09:54:28 +0200 Subject: [Rails I18n] Ajax and FireFox In-Reply-To: <2c4d894dd386f202a1b8f155d1b2e68c@ruby-forum.com> References: <2c4d894dd386f202a1b8f155d1b2e68c@ruby-forum.com> Message-ID: <63e8cd08cab1878607d2e2bc78611480@ruby-forum.com> Naga harish Kanegolla wrote: > Hi all, > I have created a new application 1month ago. In that application i > have a link Add New. This link is given using Ajax(<%= link_to_remote( > 'Add New', > :update => "abc", > :url =>{ :controller=>"xyz",:action => > :new}, > :position => "after" ) %>) > > and also i gave <%= javascript_include_tag 'prototype' %> to define > ajax. > It worked good and i'm using that application since 1 month. > > But today when i click on add new i'm not getting the form. Its giving > an error "Ajax not defined".Even its not working in my local > machine.(all these things,i'm doing using FireFox). > > So i tried in IE. Its working properly. So what might be the problem? > Why its not working in Firefox?? > > Thanks and Regards, > Harish Could anyone find any solution to this? I am also facing similar issue, where the javascript_include_tag "prototype" does not seem to work in Firefox. Please let me know if anyone finds any solution.... I need it desparately. Thanks a lot in advance. -- Posted via http://www.ruby-forum.com/. From laryn at hotmail.com Thu Apr 26 18:52:09 2007 From: laryn at hotmail.com (Silth) Date: Fri, 27 Apr 2007 00:52:09 +0200 Subject: [Rails I18n] Silth Message-ID: Your site is brought in a spam a list!!!! Write on mwodmurbwzcum at mailinator.com , what to remove your site from base -- Posted via http://www.ruby-forum.com/. From blweiner at gmail.com Mon Apr 30 01:06:22 2007 From: blweiner at gmail.com (Ben Weiner) Date: Mon, 30 Apr 2007 07:06:22 +0200 Subject: [Rails I18n] =?utf-8?q?weird_characters=2C_like_=C3=A2=E2=82=AC?= =?utf-8?b?4oCcLCBkaXNwbGF5aW5n?= Message-ID: I'm getting weird characters displaying on my pages, e.g.: ???. I'm using MySQL and my database encoding is set to utf8 and I set the character set for my pages to render as utf8 with . Does anyone know how to get rid of these characters? Thanks, Ben -- Posted via http://www.ruby-forum.com/. From isak.hansen at gmail.com Mon Apr 30 03:31:10 2007 From: isak.hansen at gmail.com (Isak Hansen) Date: Mon, 30 Apr 2007 09:31:10 +0200 Subject: [Rails I18n] =?utf-8?q?weird_characters=2C_like_=C3=A2=E2=82=AC?= =?utf-8?b?4oCcLCBkaXNwbGF5aW5n?= In-Reply-To: References: Message-ID: <6b9e1eb20704300031r696873eat4e40cf52615c1872@mail.gmail.com> On 4/30/07, Ben Weiner wrote: > I'm getting weird characters displaying on my pages, e.g.: ??". > > I'm using MySQL and my database encoding is set to utf8 and I set the > character set for my pages to render as utf8 with http-equiv="content-type" content="text/html; charset=utf-8" />. > Sure your browser is using the right encoding? If not, try setting the http Content-Type header. More reliable for me than a meta tag. Isak > Does anyone know how to get rid of these characters? > > Thanks, > Ben > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Railsi18n-discussion mailing list > Railsi18n-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/railsi18n-discussion From blweiner at gmail.com Mon Apr 30 10:15:41 2007 From: blweiner at gmail.com (Ben Weiner) Date: Mon, 30 Apr 2007 16:15:41 +0200 Subject: [Rails I18n] =?utf-8?b?d2VpcmQgY2hhcmFjdGVycywgbGlrZSDDouKCrCA=?= =?utf-8?b?4oCcLCBkaXNwbGF5aW5n?= In-Reply-To: <6b9e1eb20704300031r696873eat4e40cf52615c1872@mail.gmail.com> References: <6b9e1eb20704300031r696873eat4e40cf52615c1872@mail.gmail.com> Message-ID: <1c8e891b29202b5b19c43715c4716dd2@ruby-forum.com> > Sure your browser is using the right encoding? If not, try setting the > http Content-Type header. More reliable for me than a meta tag. Yes, the page seems to be set up fine. I've also tried installing the BrowserFilters plugin, but that did not work either. I have a feeling it may be the case that when these characters were originally put into the database, they were somehow entered incorrectly. I seem to be able to enter the correct characters--i.e., curly quotes--myself and they save and display fine. Is there any way to do some sort of search and replace on these guys? Thanks for the help. -- Posted via http://www.ruby-forum.com/. From florian.hufsky at gmail.com Mon Apr 30 11:46:50 2007 From: florian.hufsky at gmail.com (Florian Hufsky) Date: Mon, 30 Apr 2007 17:46:50 +0200 Subject: [Rails I18n] Gettext error_messages_for problem In-Reply-To: References: Message-ID: <960e4c87d624286e826c9e23268150b3@ruby-forum.com> ruby-gettext error_messages_for wasn't up-to-date with latest rails changes. i've fixed it in my version, maybe this helps you. you need to edit gettext's rails.rb and in module L10n remove render_error_messages_for and replace the following two functions (L10n.error_messages_for and ActiveRecordHelper::error_messags_for) by
        def error_messages_for(params, klass)
          options = params.last.is_a?(Hash) ? params.pop.symbolize_keys 
: {}
          objects = params.collect {|object_name| 
klass.instance_variable_get("@#{object_name}") }.compact
          count   = objects.inject(0) {|sum, object| sum + 
object.errors.count }

          unless count.zero?
            html = {}
            [:id, :class].each do |key|
              if options.include?(key)
                value = options[key]
                html[key] = value unless value.blank?
              else
                html[key] = 'errorExplanation'
              end
            end

            record = 
ActiveRecord::Base.human_attribute_table_name_for_error((options[:object_name] 
|| params.first).to_s)

            message_title = @error_message_title
            message_explanation = @error_message_explanation

            header_message = n_(message_title, count) % {:num => count, 
:record => record}
            error_messages = objects.map {|object| 
object.errors.full_messages.map {|msg| klass.content_tag(:li, msg) } }

            klass.content_tag(:div,
              klass.content_tag(options[:header_tag] || :h2, 
header_message) <<
                klass.content_tag(:p, n_(message_explanation, count) % 
{:num => count}) <<
                klass.content_tag(:ul, error_messages),
              html
            )
          end
        end
      end
      def error_messages_for(*params)
        L10n.error_messages_for(params, self)
      end
    end
-- Posted via http://www.ruby-forum.com/.