#rubyonrails - Mon 14 May 2007 between 13:50 and 13:59



oDeskRubyPanther: hi :), i can't do this, u = User.find(10) n = User.new(u) how something like this could be done.
RubyPantheryou can't
it's improper to assign other meaning to the id column
lifooDesk: try u.clone
oDesklifo: n = User.new(u.clone) ?
lifon = u.clone
rsllifo, in practice is there a diff between x.dup and x.clone?
The pickaxe doesn't say it's just an alias but it sounds the same to me.
regiusIn my magazin the don't edit routes.rb. I added map.connect '', :controller => "account" but it still don't work
liforsl: clone is defined in ar.base
RubyPantherit's "usually" the same
liforsl: it doesn't populate id
rsl: Also, it's a shallow copy
rsllifo: Aha! So it's different in Rails specifically. Interesting.
RubyPanther.clone is better if it's there because that's the one that the class normally defines
rslx.dup is a shallow copy as well though.
liforsl: Well, then id would be the only diff I'd guess
rslI haven't used it a lot ['cause of the shallow copying and all] but I've used x.dup [cause it was less letters].
davidwargh... wtf... this is insane... I have a global variable that I only increment, only set once, and yet it manages to decrement itself
RubyPantherdup is the same column, different AR object, clone is a new unsaved column
I meant row not column
davidwtime to go for a walk, I guess...
orospakrHey, I'm noticing that script/runner in a rails app I'm setting up has "#!/usr/bin/env script/runner" set up as the interpreter. However, this causes it to fail with the message: "/usr/bin/env: script/runner: No such file or directory"
MrPunkinWhat OS is most recommended with dedicated servers and such? I seem to see a lot of Rails guys running on the Centos OS
yetAnotherOneArch is nice.
lifoMrPunkin: whatever u feel comfortable with
Bex_3000hey folks, i'm wanting to create a button that when you hover over it a list appears, like a drp down box but without the clicking, any good ways of doing that?
orospakroops, wait
oDesklifo: but doing n = u.colne then Profile.new(n) will cause error undefined method "stringify_keys!'
lifooDesk: You just do n.save and not Profile.new(n)
thufir007how do I create a table for my model? http://pastey.net/29982
lifooDesk: Doing Profile.new(n) is doing something like Profile.new(Profile.new)
RubyPantherorospakr: well normally your rails_root wouldn't be in the system PATH
orospakr: so env wouldn't find it
Antiarc|WorkI've been considering CentOS, but it just seems...less solid than Fedora to me, ironically :/
orospakrRubyPanther: it's actually in ferret_start, provided by the acts_as_ferret plugin, not script/runner itself.
oDesklifo: nice, thanks
orospakrRubyPanther: but yes.
oDeskRubyPanther: thanks too
orospakrthis plugin is quite broken, it seems.

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 96 

IrcArchive