This isn't specially a "ruby" quesityon but a more general question to ruby users who manage promotional emails in their work. For the unsubscribe link, do you manually manage the unsubscriptions (ie, link is a mailto request for unsubscribe to admin) or handle them automatically via a controller?
Hi, I might be in the wrong group here, but I'll ask anyway. I'm in rails 3.2, debuggin using Aptana Studio. When I hit a respond_to block, instead of stopping on the specified line, mime_respons.rb pops up, so I have no diea what's gong on inside the block. Is there a way around this behavior?
Probably a lame question, but I'd like to issue a SystemEvent message whenever I deploy changes to my app. Any clues on how to do it? I've done a bit of "googling" without luck and am not quite sure what the "right" way would be. Ruby1.8.7 rails 2.3.5
Odd problem in rails 2.3.5 (yes 2.3.5). It *seems that I ahve to reference a model's float column by using model[:foo] instead of the typical model.foo syntax. Anyone know why? I've searche dfor answer, but apparently I'm not using the right search terms or somehow it missed being scrutinized...or there's something more glaring that my hacking self learning missed along the way.
otters, that IS the question. All the model's other columns are acceesible that way, except for a pair of columns I recently added for storing latitude and longitude, which have to be addresses as model[:latitude] and model[:longitude]. makes no sense to me
lol. one line nick. gimme a fucking break jesus vut with the helpa crap
Hi folks. quick "best practice" question regarding migrations. Is it normal to add columns to more than one table with asingle migration, ie, use one migration file for multiple table adds or use individual migration files to address each table?
Zoned, so then a single migration file that contains related changes, correct?
Zoned, thanks for the replies. understood (and agreed) jsut chekcing to make sure I was thinking straight.
Hi all.... quick question. I was studying the content of a gem and noticed that many of it's methods were named with an underscore, ie, self._foo_bar(somthing). Is there a reason for that?
ie a functional reason for putting an underscore at the beginning of the method name?
thanks erlingur and rvanlieshout . I kinda figured, but not nearly "ninja" yet so wasn't sure.
Greetings rubites. Question: what is the name for the reduced logic exemplified by the statement: foo ? "yes" : "no"
CoverSlide: thanks! Been using it for a while, but I never knew the name...
jonas, we do. However, I noticed the errors in our logs and was a bit concerned...I jsut tweked the code to add a nil check .