only ask that you have a respect, no trolling, and have
fun. We have a really cool tcl irc bot that can interface with rails
applications. irc.gangnet.ru #tclmafia
Thank you for your time,
Doug Force
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed
Saravanan,
are you on localhost? if so, paypal can't contact your local computer.
try putting it up on a staging environment, or at least a free heroku
instance, then use paypal's IPN simulator.
https://developer.paypal.com/webapps/developer/applications/ipn_simulator
Also, if you're not usi
Very new to Ruby/Rails, followed the download/install instructions, until
this step:
> gem install rails
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/local/
I get the same error when I try it, but without the characters. I get:
incomplete "\n" on UTF-16LE
You said it was a utf-8 encoding problem. Can you tell me the solution? THANKS.
On Thursday, July 19, 2012 6:00:32 AM UTC-7, Gary wrote:
>
> 锟斤拷锟街лэ拷擐讧堙锟斤拷 锟斤拷锟斤拷锟街э拷 wrote:
>
> >> isn't blank in
].recordcount
The problem with the above approach is that it is tied to mysql. Is
there a way that I can accomplish the above in a database independent
way?
Thanks for any input.
... doug
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscr
t really need to know about
the internal workings. As you say, we DO need to know about the
accessor methods and that was the part that I thought was missing from
the book. I have an earlier edition. It may have been picked up by
now.
Thanks for the input.
... doug
--
Posted via http://ww
k that my suspicions are confirmed. Thanks for the input.
... doug
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.
t there
are accessor methods for these instance variables. What I'd like to
know is whether what I have surmised is, in fact, true. I'd also like
to know if there is anything else that I should know about this object.
Can someone please fill in the blanks for me?
TIA any input.
as to how Rails handles this situation.
I fully realize that this hypothetical is very unlikely to arise in
practice and there are many available work-arounds. Putting those
aside, I'm just interested in knowing how Rails handles this
situation.
Thanks for any input.
... doug
--
You r
On Nov 23, 4:18 pm, Dave Aronson
wrote:
> On Wed, Nov 23, 2011 at 16:04, Everaldo Gomes
> wrote:
> > Try this:
> > resources :users
> > resources :decisions
> > resources :alternatives
> > resources :factors
>
> That's how I've already got the app working; the nested version was
> somethin
On Oct 19, 4:16 pm, genterminl
wrote:
> The whole point is I have lots of tables with lots of columns, and I don't
> want to have to do all that typing. The magic_model_generator creates all
> the model files, and it can obviously see all the columns in the database,
> I'm just surprised that n
On Oct 19, 12:01 pm, Tsolmon Narantsogt wrote:
> Hello everybody.
>
> I just upgrade my gem version 1.37 to 1.8.11. Then i run my project and got
> a this error.
>
> START Error
> -
> Invalid gemspec in
> [/usr/lib/ruby/gems/1.8/specifications/json-1.6.1.gemspec]: invalid date
> form
27;ll teach me, are
gratefully received.
Cheers,
Doug.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.c
Perfecto! Thanks so much.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-tal
question is this: Can someone please tell me what I need to do
to set the Reply-To header value in version 2.3.8 of Rails?
Thanks for any input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to th
Hey all, first post here, looking for some answers that I couldn't
find otherwise on the web.
Several years ago, my company hired a developer to develop a database
system for our company. It handles all customer records, and is used
by 6-10 users on a daily basis. It was written with Rails 2.0.2
I'm seeing a few of these per day from a few different IPs. As far as
I can see, and what I know of our customer base, I believe they're
only crawlers.
Is there a real workaround for this, or does anyone know if the Rails
core been notified of this issue?
On Jan 10, 9:59 am, Tony Primerano wrote
entries to root-owned log directories. I find that
is not the case. Any ideas how I can get Logger to write to the root-
owned log directory?
Thanks for any input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
> But you are wrong AFAIK. params is a HashWithIndifferentAccess, so you
> can use either symbols or strings.
That settles the issue. Thanks.
...doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To po
ndering what is the best way of handling this.
Thanks for any input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe fr
u all who use global responders? Is it just a bad road
to go down to add logic that only applies to certain ajax calls in a global
responder?
Thanks for your thoughts.
Doug Boude
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To
he layout from the contents of a variable) it is extremely
easy to implement. I just wish that there were some sort of easy work
around other than taking the brute force tact of writing the data to a
temp file and then reading it from there.
Thanks for the input.
... doug
--
You recei
ut facility. I think that
approach might be a bit more robust and it might integrate better.
Thanks for the input. As I say, it's something to consider.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To
skinning
this cat. Anyway, that's the rationale behind my inquiry. Thanks for
the input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegro
then loading it from there. Am I correct in
my understanding?
TIA.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from
> But what the hey -- develop a prototype and send it out to play :-)
I'm thinking about it. It is, however, helpful to know whether others
think that I'm totally nuts before I invest a lot of time in it.
Thanks for the input.
... doug
--
You received this message because
might be able to come up with something a bit more
clever. Maybe not. Thanks.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubs
the
substantive content. Is that any more clear?
I know that it's wild. I just wanted to see how wild and see if
anyone else had been crazy enough to think about such a thing.
Thanks for the input.
... doug
--
You received this message because you are subscribed to the Google Grou
em to
have any merit? 2) Are there better ways to skin this cat? 3) Has
anyone done anything like this; and, if so can you please give me any
implementation details that I should know.
TIA.
... doug
--
You received this message because you are subscribed to the Google Groups "
es; or, should I expect this to work? TIA for any
input. BTW, I've appended my full test code in the event that it is
somehow relevant. Thanks again.
... doug
Full Test Code:
require 'socket'
login_request=<<'_ALTO'
client
Login
13561
way, that is what was causing my problem. Thanks.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send e
ather just looks for the presence of those
opening and closing characters to make the determination. The
received string meets that requirement. Any suggestions on what I
might do?
Thanks for any input.
... doug
--
You received this message because you are subscribed to the Google Gro
I think that I have the speed issue resolved. It appears to be an
anomaly that is associated only with their sandbox server. The live
server seems to work just fine. I can live with that. Thanks for
your help.
... doug
--
You received this message because you are subscribed to the
t;ip","port")
out=File.open('/tmp/debug1','w')
while line=socket.gets
out.puts(line.chop)
end
socket.close
out.close
Do you have any idea why this would be very slow? Thanks.
... doug
--
You received this message because you a
wrong and what I need to do
to get at the greeting? Obviously I am very green at this. Thanks
for any input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@
config.action_mailer.smtp_settings = { :whatever }
I did just that, I appended them. They should rather be INSERTED
before the concluding 'end'. Sorry for the noise on this issue.
... doug
--
You received this message because you are subscribed to the Google Groups "
tting complaints that there is no local variable or method,
'config'.
Can someone please tell me how to correctly make this configuration in
my version of Rails? As I say, I have no idea how it ever worked. If
anyone has any thoughts on that, I'd love to hear them as well. TIA.
> And googling for "ruby rake" turned up:
Yep. I had seen that. I was looking more for comprehensive formal
documentation like what the link that Philip pointed to. Anyway, I am
squared away now (at least on that issue). Thanks to all who provided
input.
... doug
--
n? Thanks.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups.c
> But if you *must* do something like the above, it's called `rsync` and
> it handles case #3 as well.
I'm going to look into this. Thanks for the suggestion.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Ta
the system being updated (as in
the case where the update adds the file) we want to write the file.
Thanks for the input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send e
that there must be a better way. Does anyone
know what that better way is (possibly a different archiving tool)?
Thanks for any input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group
once to render it if it does. Using your
approach, I only have to deal with the actual partial once, i.e., to
render it. I'm adopting your approach whch, btw, works great. Thanks
for the suggestion.
... doug
--
You received this message because you are subscribed to the Google Gro
the relevant partial is rendered instead. I
suspect that there may be a more elegant way to skin this cat. Any
suggestions?
Thanks for any input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to
> That's what I'm trying to tell you. If you are using a multipart form
> to upload your file, then the #original_filename attribute should be
> available on the uploaded file object.
Got it! I'm an idiot! Thanks a batch.
... doug
--
You received this
don't want to
go that route if there is an easier way.
Thanks for the input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To
es work. I'm wondering if there is any way I can get at the
original file name (i.e., the name of the file on the system from
which the file is being uploaded) so that I could substitute it for
'test1' and thereby preserve the original file name.
Any suggestions would be appreciated
I have not yet done detailed testing; but, at least superficially,
your suggestion seems to have resolved the issue. Thanks very much
for the input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to
ve to copy all of the old files from the original application
into it. I'm hoping that there is an easier way. Is there?
Thanks for any input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post
don't see how that works with validations.
How would we satisfy that requirement w/o validations?
perhaps a factory method?
or using a callback on create?
where we create a default schedule.
thinking out loud here...
thanks again.
On Feb 1, 10:03 am, Marnen Laibow-Koser wrote:
> Do
A lot has been posted about validation issues with associations,
however, I don't see this issue addressed specifically.
ex:
class Foo
has_one :schedule, :dependent => :destroy
validates_presence_of :schedule
class Schedule
belongs_to :foo
validates_presence_of :foo_id
this creates a cir
file and then I looked at it.
Apparently that methodology is not always truthful about the order
either. Thanks so much for the input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this g
populated just fine but it is not
ordered. Can anyone please tell me what the magic trick is under
Rails 2.3.2 to create an instance of an ordered hash and then populate
it with ordered data? Thanks for any input.
... doug
--
You received this message because you are subscribed to the
> Click this link and bookmark the Code Search.
That's really handy. Thanks a batch.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@go
> irb(main):001:0> "foo".to_sym.class
> => Symbol
>
> irb(main):002:0> :foo.to_s.class
> => String
VIOLA!!! That seems to be the missing link. Thanks ever so much. :)
... doug
--
You received this message because you are subscribed to the Google Gr
has been quite well answered.
Thanks again for the input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this
over this hurdle?
Thanks again for all the help.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send em
proach would be to use brute force to parse the data in that
string. Does anyone have a better methodology? Thanks.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email
wever, I don't have the
luxury of being that current. Accordingly, it appears that I am going
to have to parse the raw post data and enter it into either an ordered
hash or an array. My question is, how would I go about doing that?
Thanks for any input.
... doug
--
You rec
utors. All is well and I am a happy
camper. Thanks to all for the very helpful input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com
fails? A transcript of my console session is
shown below. Thanks for any input.
... doug
>> record=Member.find(1)
=> #
>> record.save
=> false
>>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk"
input.
Oh, BTW:
# Assuming that the model really is called Model,
It isn't. I chose that name for illustrative purposes.
Thanks to all for the input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
T
.eval('record.'+key)=value
4. end
Apparently, having the eval on the LHS of an assignment doesn't work.
Can anyone please tell me what would work?
Thanks for any input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
o
g the latest stable version of Rails, and Ruby 1.9.1
Can anyone shed any light on what may be going wrong, here?
Thanks,
Doug.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to t
existing data. Obviously, the big hang up is, "How do I cycle
through the images". But for that issue, it's a piece of cake.
Thanks for the input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group
e O'Reilly book; or, are there other avenues that I should
consider?
Thanks for any input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.co
I wanted to correct an error that I made in a prior post just in case
anyone is or will be following this. My fix was to make the database
writable by the user, "nobody" rather than the user the smtp server
was running as. Sorry for the mis-spoke.
... doug
--
You rec
works just fine. I just
get nervous when I have to expand the write permissions on the
database. Basically, I'm thinking that I'm probably missing
something. In this case, maybe not. Thanks for the input.
... doug
--
You received this message because you are subscribed to
ted from that variable and then an attempt is made to write
that data to the database. It is that write to the database that is
being blocked.
> well they all run within the same mongrel-process (I guess)...
I don't know whether it's relevant; but, I'm running passenger.
Thanks for
f my other
Rails methods have no problem writing to the database. So, I'm a bit
perplexed. More importantly, before I go off changing permissions on
the database, I'm wondering if anyone has any insight on what's going
on here, why I would suddenly be seeing this issue and what t
be really nice if I had an
object so that I could conveniently get at the respective
components.
In any event, you've been most helpful. The proof of the pudding is
in the eating, and IT WORKS! Thanks a batch for the help.
... doug
--
You received this message because yo
ailer < ActionMailer::Base
# First method omitted for simplicity
def receive2optin(email)
outfile=File.open('/tmp/debug1','w')
outfile.puts(email.from[0])
outfile.close
end
end
Any thoughts would be appreciated. Thanks.
... doug
--
You re
> HTH,
It helps a lot. I'm still having problems; but, I'm definitely past
this issue. Thanks for the input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send
eive2optin(STDIN.read)'"
Thanks for any input.
... doug
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this gro
> This was a bug in some versions of Rails (2.3.? I think). I believe
> it is fixed in current Rails.
I am running 2.3.2. Apparently that is an affected version. Anyway,
glad to understand the issue.
Thanks to all for the input.
... doug
--
You received this message becau
original file. So, changes that I make to the
original file are effectively ignored. I've now been caught by this
anomaly twice now. I think it's time that I understood it. An
explanation would be appreciated. Thanks.
... doug
--
You received this message because you are
ould consider? If we get a few thousand addresses
returned, is that going to be a problem? Thanks.
... doug
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this
le commentary I could find deals with clearing caches, etc. I'm
just wondering if anyone has figured out exactly what it is that
causes FF to come to this conclusion and what we need to do in order
to keep it from making such erroneous determinations.
Thanks for any input.
what does /2 or /5.5 represent to ruby?
in a division caclulation: x / 5.5
if you only put a space between x and the /, then
the console hangs
in irb it does this:
irb(main):014:0> x = BigDecimal("10.00")
=> #
irb(main):015:0> x * 5
=> #
irb(main):016:0> x / 2
=> #
irb(main):017:0> x /2
irb(mai
son, the option is not exercised in the intervening
line 2, it leaves me to wonder if the author of the code knows
something that I don't. Hence the question.
Thanks for the response.
... doug
--~--~-~--~~~---~--~~
You received this message because yo
image.resize! "100x100"
Thanks for any input.
... doug
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@go
l
constant in a file added to the initializers directory is enough to
meet my needs.
Again, thanks to all for the input.
... doug
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk&quo
Interesting. The procedure that you describe is much different than
what I expected. So, I guess that I'm not surprised that what I did
failed to work. Thanks. I'll give it a try.
... doug
--~--~-~--~~~---~--~~
You received this message b
what might work? Also, I fully
recognize that global variables are to be avoided (but it sure works
fine :) ). Does anyone have a suggestion as to what I might use to
replace the global variable?
Thanks for any input.
... doug
--~--~-~--~~~---~--~~
You rec
age=MiniMagick::Image.from_net('url_to_image')
Thanks for any input.
... doug
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group,
simple task. So, before I start down
this path, I'd just like to inquire as to whether anyone has any other
approaches that I should consider. Thanks for any input.
... doug
--~--~-~--~~~---~--~~
You received this message because you are subscribed t
nt(post.body,:type=>'html')
entry.author { |author| author.name("Doug Jolley") }
end
end
end
I have a hunch that my problems are in some way related to the use of
the 'builder' template format which I have never even heard of
before. Anyway, can someon
Does this mean that I should setup a read.csv view to
render the document in csv, or what?
I don't seem to have enough basic knowledge to get started
understanding this. I would really appreciate it if someone could
help me get started off in the right dir
Is there some way that I can render text in a new frame?
Thanks.
... doug
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyon
. It certainly seems like an easy procedure.
The thing about perturbing, "the AUTOINCREMENT key generation
algorithm" scares me. Do I really need to be concerned? Is there a
better way to accomplish this objective?
Thanks for any input.
can
get at the value of the parent field in topic. Anyone have any
suggestions?
Thanks for any input.
... doug
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To p
In fact, now that I think about it, how are parameters normally
passed to a rendered view. I would think that it would all be the
same process.
Thanks for any input.
... doug
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
s wants me to somehow include those values in the @member object.
Anyway, my question is this: How should I be approaching this issue?
Thanks for any input.
... doug
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
zero. However,
if the new value for this column is zero, it is not updated and the
old value is retained.
I'm sorry. I seem to be encountering more than my share of bizarre
situations lately. Does anyone have any thoughts? Thanks.
the
particular controller involved is what seems to be needed. My
question is: Is that the way to do it; or, is there a better way?
I'm concerned about breaking the class chain setup by Rails. Maybe
it's no big deal; but, I'd like to know that for sure.
Thanks for a
the 3ed to the last
line, the disk file confirms that it is actually accessing the first
record in the DB. I can't figure out why that is. It's like a bad
dream from which I expect to awake any moment. I do hope that it
hasn't been a long day an
Am I missing something?
Thanks for any input.
... doug
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googleg
Cheers -- I was being a total spoon.
All I needed to do was to require it normally -- thought I'd tried that,
but must have prepended it with a slash out of habit the first time, or
something.
Thanks,
Doug.
--
Posted via http://www.ruby-foru
stant (for SF) error?
I've tried direct requires, adding to the config.load_paths in the
environment files, adding to the $: array, all to no avail.
I did something similar years ago, but I'm damn'ed if I can remember
how, so any help would be very gratefully received.
Cheers,
ha... my problem was I was running a rake take
so the initializers weren't being run
this seems to have worked for me:
rake db:create:all -P development
On Aug 1, 3:07 pm, Doug wrote:
> That fix is being ignored in my case. Win XP
>
> I get exactly the same error.
>
> When
1 - 100 of 139 matches
Mail list logo