Some people may want to run their rails server as one user, deploy
their app as another user, run some rake tasks manually or via cron
that also write to the same file system as another user, etc. There
are a variety of reasons one may want to do this kind of separation,
including security. You'd
On Nov 20, 12:47 pm, Michael Koziarski wrote:
> > chown(old_stat.uid, old_stat.gid, file_name)
>
> This line was added deliberately.
I think I now see the flaw in my original logic, thanks. How about
this instead: change the line to:
chown(nil, old_stat.gid, file_name)
The reason being: n
Thanks Ben for the thoughtful words. I agree wholeheartedly.
The way this issue is being handled illustrates why many rails lovers
originally resorted to writing Merb, which was then borrowed from to
create Rails 3 when the rails guys finally came to their senses. It
also illustrates why one Rus
I've had great success with the valium and activerecord-import gems, when
it comes to a few places where I need to speed things up because I have
hundreds or even many thousands of database rows that need processing and
when it just so happens that in those cases I don't need full blown AR
obje
So far I've just manually used set_table_name and set_primary_key and
similar things in models that must access legacy database tables. It's
worked well with camel case for me so far. Scaffolding models can only get
you so far, most of the time I don't even bother with it anymore since it
onl
Rails strikes me as a practical framework. Not only does it solve everyday
problems that people have, but the best way to start a conversation seems
to be to demonstrate, with actual working code (possibly gemmed or forked
as necessary), why something is needed, rather than just discussing
the
Is rails providing a generic lowest-common-denominator caching interface to
many caching stores, memcached being only one of them? If so, then it
would make sense to provide a consistent semantic to all of them, rather
than make each one behave quite differently based on what semantic each one
There's also the little issue of the world not all using only English. A
full Unicode-aware case insensitivity is even more inefficient than a
regular ascii-only one... but in practice might be required in just as many
cases as an ascii one...
Dave
On Tuesday, October 2, 2012 12:15:25 PM UTC-
One of the great things I like about rails is not always being tied to full
backwards compatibility causing a more and more bloated core every major
release. In my mind a plugin that puts everything back would solve that
issue, for those who need it.
That other objection still gives me pause t
There have been times when I would have liked to be able to somehow
consistently get a fixnum count, instead of sometimes a fixnum and
sometimes a hash that I just have to loop through and add up the values!
Dave
On Thursday, October 11, 2012 7:01:47 PM UTC-7, Andrew Vit wrote:
>
> I posted my
There's a really big difference between these two potential scenarios:
(a) every single rails app I've ever written that uses
find_by_*(params[*]) is immediately and completely compromised by anyone in
the world with a simple well crafted url
-and-
(b) every single rails app I've ever
If everything in the whole world were done perfectly, nothing would ever be
vulnerable to anything. But out here in the real world where murphy's law
exists, an attitude of "defense in depth" is more practical, in addition to
doing one's very best to be as perfect as possible.
On Saturday, De
12 matches
Mail list logo