I can only confirm that we've run into the same thing over here recently (running on the Rails 2.0.2 gem). A quick review of the Rails code seemed to confirm...
I want to do a "create if the object doesn't already exist, update if it does" with a single call to the database. MySQL supports this with a unique index on...
Hey Gabe, I think the main reason for your error is that you are trying to render an controller action instead of generating some text to replace a part of a...
Is your controller that you're calling it from the same as the controller that should render it? If not, then I think you want to use :template or create a...
Well, it turns out that render :partial => 'thing/form' works fine, so i've switched to that. Thanks to everyone for the speedy responses! And yeah, Chris, I...
... I thought that MySQL's to insert or update was not because of a unique index but because of the ability to write "INSERT ... ON DUPLICATE KEY UPDATE ..."....
... The AR call is find_or_create_by.... If there was a need, it would be an interesting plugin idea: catch calls to that code and write different SQL for...
That's close, but not really what I want. find_or_create_by will still result in two SQL calls. I want the find part of the query to be two attributes, but I...
... Ah, right, the update part. What you want would be something like AR::Base.update_or_create.... (but wouldn't be a create You're definitely past base AR...
Quick note for you Leopard users out there. It's obvious in hindsight, but didn't occur to me until I found the problem: Time Machine is great, but I noticed...
Hey all, Just wanted to let you know that my site, www.myJambi.com, launched into Alpha this week. Let me know what you think ... would love to get feedback...
Hello folks! I wanted to send another position that has come across my desk. Working for an excellent company in the Tribeca Area, NYC. If there is another...
Hey everyone, Tuesday March 11 is our next meeting, and it requires a speaker. Anybody want to give a talk? Send out a message here, or to me privately. ...
I can do a talk on git. I don't really consider myself an expert, but we've been using it for a while and I think I can come up with an introductory talk Sent...
I've been talking to Kyle Bragger, of BricaBox, who volunteered to do a talk back in December but has since then rewritten their app in PHP. I'd love to hear...
I'd be very interested in learning more about git. It's all the rage now, and github is a sweetass site, but I don't know a thing about it. I wonder if I'm...
Let me know if you need someone to stand in as a developer who encounters a lot of edge case behavior with git-svn... ... In all seriousness, though, I think...
<troll> Long live Mercurial! </troll> ... -- "Myths and legends die hard in America. We love them for the extra dimension they provide, the illusion of...
I'm with you Rick. The thing about Git is that it doesn't run well on windows, now i know most of you are on a Mac or run Linux, but for the windows folks,...
I'd like to hear Kyle talk. If Bricabox hits big this year you know that everyone is going to be using it as an example that Rails doesn't scale. It would be...
So I tried to use the bash instructions found at http://acts.as.streeteasy.com/archives/2007/12/19/git_in_your_prompt/, but it ended up creating a branch...
Give this a shot, but haven't tested it yet... git branch -D -- -no-color In general, passing -- to gnu'y unix commands signals that you're done passing args. ...
Hmm... looks like --no-color got textilized to <long hyphen>no-color. I'm sure your branch is named just like that... —no-color , instead of -no-color... So...
Likewise, I'd like to hear Kyle talk about his rails to php rewrite. And Paul's javascript web chat client interests me, too, since I do a lot of js work. ...
We decided a while back to do one talk per night, so things don't feel overly long and it's possible for the people who don't live nearby to catch some of the...