|
Space Kimchi posted:It's more like, I don't get the logic at all behind the requests and responses. Indeed, I probably need to "get" Prototype more. I'll just have to play with it a bit, I think last time I was messing with it I started examining the xmlhttprequests and everything and figured out what it was doing and it started to make SOME sense. If you aren't using Firebug, start. That's step one, step two, and step three. Argue posted:Speaking of AJAX, is there some kind of way to retrieve an instance of a model as a javascript object? I mean, if you have a model called Book, and it has the fields title, description, ISBN, is there a function that will let me go myBook = theFunction(myBookId), such that I can say myBook.title, etc? Jester does this. Looks cool, but I haven't tried it personally.
|
# ¿ Aug 30, 2007 04:34 |
|
|
# ¿ Apr 26, 2024 20:40 |
|
shopvac4christ posted:I have a rake task that is supposed to download and extract a '.zip' file. I'm running system commands, so something like Sounds more like you've got a space in your path name (or some other character that needs escaping). Wrap your paths in single-quotes.
|
# ¿ Nov 9, 2007 22:34 |
|
rolocroz posted:What's the best way to get Ruby installed on Windows XP? Last time, I tried the one-click installer, but that installed a bunch of crap I don't want and couldn't unselect (some IDE, if I recall correctly, and some other stuff that was hard to remove). I tried just downloading the plain Ruby 1.8.6 binary from ruby-lang.org, which seemed promising, but it turns out that that's missing lots of DLLs that are required by RubyGems and other such things. Do I have to use the one-click installer, or is there a better option? You couldn't unselect ScITE? That's the only unnecessary thing it installs, if I recall correctly, and you can opt out of it.
|
# ¿ Dec 10, 2007 00:08 |
|
Grob posted:Interesting, I didn't know effect queues were supported by RJS! Effect.Event is a skeleton effect that allows arbitrary functions to be treated as effects for the purpose of queueing.
|
# ¿ Dec 16, 2007 20:13 |
|
Grob posted:Yes, but I was talking about RJS. It's not hard to trigger an arbitrary function call for a visual effect when writing your own Javascript, the issue is doing it from RJS. I'd put all that behavior into JavaScript, then call it via RJS. code:
All the simpler RJS statements can remain that way, but this is a good way to put really hairy logic into a black box. As for this... Grob posted:My goal is to avoid writing external javascript files for simple things like fades and updates RJS isn't a leakproof abstraction. It's really just a way to place Ajax logic in your controller, where it makes sense to live. If you try to write everything in pure RJS, never touching JavaScript at all, you'll just end up uglifying your controllers.
|
# ¿ Dec 17, 2007 08:41 |
|
Austria posted:For VPS, I can't recommend Slicehost more than enough. They're cheaper than Media Temple, especially if you're going to be hosting just Rails apps (Nginx and Thin is great!). If you'd like to use me as a referrer (it gets me $5 after you sign up for 3 months of hosting, but gets you nothing extra), PM me. Seconding Slicehost. I just moved from shared hosting to a 256MB slice and the process was ridiculously smooth. A VPS has more of a learning curve than shared hosting, since you're now in charge of everything, but I credit Slicehost's exhaustive library of HOWTOs for easing that transition. I don't run Rails apps on mine, but many others in the Slicehost community do, and they appear to love it.
|
# ¿ Jan 12, 2008 00:07 |
|
jonnii posted:I use slicehost, they are awesome. Highly recommended. Thirded.
|
# ¿ Jun 30, 2008 16:53 |
|
Grob posted:No, some of us have Rails projects in production. Forumwarz, my MMO, is deployed on a dedicated host. Off-topic: Forumwarz is awesome. You guys do great stuff on the JavaScript side.
|
# ¿ Jun 30, 2008 16:56 |
|
Panic! at the Fist Jab posted:I'm trying to throw OpenID at Sinatra, and goddamn is it annoying. The documentation comes with no examples -- which I half feel is an appropriate way to approach the subject, since it's important to understand all of the steps you're going through -- but on top of that, the library is written in a Ruby-esque way... or even at all sometimes. Annoyingly, a lot of major providers don't implement SReg. I don't know if Y! is one of them. But you could try one that definitely does implement SReg, like claimID, and compare the result.
|
# ¿ Jul 31, 2008 16:56 |
|
To each his own, of course — HAML has many zealous users and I'm sure it is well-made — but the trend of applying a Ruby frontend to everything drives me insane. It's bad enough having to re-learn the best way of doing things every six months when I revisit Rails. People keep inventing their own goddamned DSLs for everything and I don't know how they keep them all straight. I guess I like the ERB approach to things: HTML with splashes of Ruby, rather than RUBY EVERYTHING.
|
# ¿ Feb 21, 2009 06:54 |
|
Operation Atlas posted:Eh? Haml isn't any more Ruby than ERB is. Haml is a re-implementation of HTML using a more terse syntax. There are Haml libraries for Python, and several other languages I believe. Ah, how sloppy of me. I think I was thinking of Markaby.
|
# ¿ Feb 21, 2009 09:53 |
|
|
# ¿ Apr 26, 2024 20:40 |
|
Operation Atlas posted:I think Jamis handled this poorly. He should have asked for help a lot earlier, and he could have switched to a "project manager" kind of role a long time ago, kind of like DHH with Rails. For whatever reason, Capistrano was always viewed as "his" project, and bug reports, patches, etc always went through him. That's why he got burnt out, and I think that burn out was completely avoidable. Yeah, and this comment of his is telling: Jamis posted:@Nic, no, there are no other core contributors. I tried once to create something like that, but no one else seemed to have the “passion” or “vision”. Lots of people submitting patches (many of them quite good!), but no one demonstrating a real, general desire to dig into the internals. That’s kind of why I left it like I did—there really wasn’t any heir-apparent that the keys could be left to. Now, some open-source projects are going to be lucky and get matched up with someone who wants to spend ten hours per week maintaining the drat thing because what the project does just so interesting to that person. But for the most part that's just not how poo poo works. You can't run a big project like that with just one person, and you can't transition off a project by finding another dictator and dumping it in her lap. If it's big enough that you're getting burned out, you need to change the workflow — pick the part that you like doing most and get other people to help out with the rest. In other words, if I need to hire a nanny, I'm not going to look for someone who's going to love my kid as much as I do; I'm going to look for someone who knows CPR and can make sandwiches.
|
# ¿ Mar 1, 2009 01:12 |