| ReinH | tpope: psst |
| kira | Hello. I haven't learned ruby and rails yet, but I need deploy a rails application right away. I have followed general instructions provided by my host provider, but when I run "ruby scrip/server", I get an error about the database tables not being there. I have already modified database.yml. I'm guessing all rails applications contain a script to automatically set up the database tables. What command should I run first? |
| magic_hat | penius: the sample mongrel_rails start command i'm using includes a path to a .pid file that my machine's not finding. Any idea what's up w/ that? |
| lonny | magic_hat: What exactly is the line? |
| magic_hat | lonny: never mind. I thought the problem was mongrel.. it's actually my poor typing skills. |
| MilesZS | Kira: Well, if the programmer wrote migrations, you may be able to just run 'rake db:migrate' Kira: Are you trying to actually deploy this? As in, an actual production application? |
| ReinH | Kira: you need to go to wiki.rubyonrails.com and begin reading |
| theRemix | how would i do a Post.find(:all) if i want to :order by count( comments ) :limit 5 where it will always pull 5 posts, but order by the last 7 days if possible wait, i don't think that's possible can someone just help me find(:all) and :order by count(comments) so that i get the top 5 posts with the most comments ? |
| inkncoffee | Business Related question... when looking at a job application, the ad asks for "Expert knowledge of Java, Struts, Servlets, JSP, Javascript, DHTML, XML, and SQL. Working knowledge of AJAX and Ruby on Rails." can someone actually be an Expert is all that stuff? seems unreasonable |
| lonny | theRemix: Unless I misunderstood you, I do not think it is possible to order by a count, unless you group too. |
| ReinH | inkncoffee: if you're a Java guy, I suppose |
| MilesZS | Yeah, what ReinH said. |
| svet | inkncoffee: Expert is a loaded term. It really depends with whom you interview. |
| mbelleza | tpope: i use javascript but theres an error |
| penius | inkncoffe: I think what they mean is "somebody who's done java on struts for 4 or 5 years, and has played around with rails on the side" |
| tpope | that's too bad |
| theRemix | lonny, ok, so how can i do that? |
| mbelleza | tpope.: the focus |
| tpope | I guess you'll just have to give up |
| svet | inkncoffee: However an experienced J2EE dev should be comfortable with those. |
| inkncoffee | yeah, I dont know..it just seems like these companies always ask for someon who is an expert at pretty much everything. |
| MilesZS | That description is misleading... maybe necessarily misleading, but nonetheless. The first 4 things are related, IIRC, Javascript, DHTML, Ajax are mostly related. |
| ReinH | penius: you're probably right |
| svet | inkncoffee: some people don't consider you an expert unless 1) You helped invent the technology 2) You wrote a book on it 3) you wrote an academic paper on it |
| MilesZS | You run in to XML and SQL if you program. Ruby on Rails is the odd one out. |
| svet | inkncoffee: In that case, yeah - that would be a tad unreasonable. |
| penius | I've seen some much worse ones... my favorites are the small business that want someone who can set up a lamp server from scratch, then write custom apps for it, while doing all the UI, graphic design, and SEO |
| kira | MilesZS: yes, production application |
| ReinH | penius: hahahaha, I'll do it if you pay me $150/hour maybe |
| lonny | theRemix: I have not done a lot of that. You have to choose a field to group by. |
| svet | penius: it's surprising how long that mentality has endured |
| ReinH | hell, I'll do ruby on rails apps and deployment with UI and graphic design for $80 |
| penius | I can do all of the technical stuff, and I can come up with a shitty UI and some crappy graphics, but it just cracks me up when I find an ad like that |
| shoot^ | guys, im using NET::HTTP which doesnt appear to be doing what it should with a post command. how can i get it to display exaclty what is going on in the dev log? ie. headers, page requests etc? |
| ReinH | shoot^: why are you using NET::HTTP? |