Tagged Questions

2
votes
1answer
39 views

Custom ActiveRecord finder invoking named scopes?

I have a custom finder defined below: class ContainerGateIn << ActiveRecord::Base ... def self.search(text) result = if text text.split(' ').inject(self) do |r …
3
votes
7answers
199 views

Why do you think Ruby or Python isn’t as pervasive as PHP?

Ruby and Python are both maturing as scripting languages, with Ruby 1.9 closing the gap with PHP in terms of performance. Why do you think these two aren't as pervasive as PHP in t …
3
votes
3answers
44 views

What is a Better Option Than Delayed Jobs (Ruby gem)?

Hi. I just found out delayed jobs consumes a lot of memory. I am using daemons gem. Can anyone point to a more simple (not overkill and doesn't consume too much memory) solution? …
3
votes
3answers
72 views

Know any simple way to deal with Statistics (page views count) in Rails?

Hi Happy Holidays. I have developed some features for a site (personal project). I am not sure what is the best way to deal with this or whether I am in the right direction: USER …
1
vote
1answer
90 views
3
votes
1answer
102 views

How do I convert an HTML Table to CSV?

I would like to get stats out of a certain website. I would like to convert an html table to a csv (comma separated values)? How would I go about doing this in say PHP/PERL/RUBY …