[Rails] Community For LGBTQ, Female and minority Rails Devs

2014-05-24 Thread Doug Force
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

[Rails] Re: paypal-express gem

2013-05-10 Thread Doug
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

[Rails] gem install rails - FAILS

2013-01-03 Thread Doug Royer
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/

[Rails] Re: Error in tutorial

2012-07-20 Thread Doug
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

[Rails] Active Record - Record Count

2012-07-12 Thread Doug Jolley
].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

[Rails] Re: Active Record - Object Wrapping a Table Row

2012-07-08 Thread Doug Jolley
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

[Rails] Re: Active Record - Object Wrapping a Table Row

2012-07-07 Thread Doug Jolley
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.

[Rails] Active Record - Object Wrapping a Table Row

2012-07-07 Thread Doug Jolley
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.

[Rails] A Friendlier Login System

2012-04-27 Thread doug
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

[Rails] Re: nesting resources under users?

2011-11-24 Thread Doug
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

[Rails] Re: Generate model from database

2011-10-20 Thread Doug
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

[Rails] Re: Runtime error.

2011-10-20 Thread Doug
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

[Rails] How to handle image file data in a RoR web service/client?

2011-09-25 Thread Doug Livesey
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

[Rails] Re: ActionMailer - Setting Header Values - Version Issues

2011-04-16 Thread doug
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

[Rails] ActionMailer - Setting Header Values - Version Issues

2011-04-15 Thread doug
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

[Rails] Update and Redevelopment

2011-03-03 Thread Doug Clark
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

[Rails] Re: HTTP Accept header wildcard breaks rails app

2011-02-15 Thread Doug Mayer
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

[Rails] Using Logger to Create a Root-Owned Log File

2010-08-26 Thread doug
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.

[Rails] Re: Accessing Input Type Image Coordinate Params

2010-07-22 Thread doug
> 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

[Rails] Accessing Input Type Image Coordinate Params

2010-07-22 Thread doug
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

[Rails] tangent question regarding Ajax best practice

2010-07-03 Thread Doug Boude
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

[Rails] Re: Referencing a Layout

2010-06-29 Thread doug
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

[Rails] Re: Referencing a Layout

2010-06-29 Thread doug
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

[Rails] Re: Referencing a Layout

2010-06-29 Thread doug
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

[Rails] Referencing a Layout

2010-06-29 Thread doug
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

[Rails] Re: Remote Layout

2010-06-27 Thread doug
> 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

[Rails] Re: Remote Layout

2010-06-27 Thread doug
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

[Rails] Re: Remote Layout

2010-06-27 Thread doug
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

[Rails] Remote Layout

2010-06-27 Thread doug
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 "

[Rails] Sockets are Killing Me!

2010-06-14 Thread doug
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

[Rails] Re: Using XmlSimple to parse XML strings

2010-06-13 Thread doug
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

[Rails] Using XmlSimple to parse XML strings

2010-06-13 Thread doug
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

[Rails] Re: TCP Sockets

2010-06-11 Thread doug
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

[Rails] Re: TCP Sockets

2010-06-11 Thread doug
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

[Rails] TCP Sockets

2010-06-10 Thread doug
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...@

[Rails] Re: ActionMailer Confusion

2010-05-08 Thread doug
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 "

[Rails] ActionMailer Confusion

2010-05-08 Thread doug
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.

[Rails] Re: rake

2010-05-08 Thread doug
> 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 --

[Rails] rake

2010-05-08 Thread 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

[Rails] Re: Updating an Application

2010-05-03 Thread doug
> 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

[Rails] Re: Updating an Application

2010-05-03 Thread doug
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

[Rails] Updating an Application

2010-04-30 Thread doug
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

[Rails] Re: Rendering a Partial as an Alternative

2010-04-10 Thread doug
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

[Rails] Rendering a Partial as an Alternative

2010-04-09 Thread doug
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

[Rails] Re: File Upload - Preserving Original File Name

2010-03-09 Thread doug
> 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

[Rails] Re: File Upload - Preserving Original File Name

2010-03-09 Thread doug
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

[Rails] File Upload - Preserving Original File Name

2010-03-08 Thread doug
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

[Rails] Re: Upgrading the Rails Version Used by an Existing Application

2010-02-19 Thread doug
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

[Rails] Upgrading the Rails Version Used by an Existing Application

2010-02-18 Thread doug
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

[Rails] Re: validating both sides of a has_one relationship breaks

2010-02-01 Thread Doug
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

[Rails] validating both sides of a has_one relationship breaks pickle/machinist tests

2010-02-01 Thread Doug
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

[Rails] Re: OrderedHash Rails 2.3.2

2010-01-24 Thread doug
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

[Rails] OrderedHash Rails 2.3.2

2010-01-23 Thread doug
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

[Rails] Re: Accessing Raw Post Data

2010-01-18 Thread doug
> 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

[Rails] Re: Accessing Raw Post Data

2010-01-17 Thread doug
> 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

[Rails] Re: Accessing Raw Post Data

2010-01-17 Thread doug
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

[Rails] Re: Accessing Raw Post Data

2010-01-16 Thread doug
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

[Rails] Re: Accessing Raw Post Data

2010-01-15 Thread doug
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

[Rails] Accessing Raw Post Data

2010-01-13 Thread doug
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

[Rails] Re: record.save returns false

2009-12-23 Thread doug
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

[Rails] record.save returns false

2009-12-22 Thread doug
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"

[Rails] Re: Eval on LHS of Assignment

2009-12-22 Thread doug
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

[Rails] Eval on LHS of Assignment

2009-12-21 Thread doug
.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

[Rails] post method or request flattening array of hashes in params

2009-12-21 Thread Doug Livesey
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

[Rails] Re: Slideshow

2009-12-20 Thread doug
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

[Rails] Slideshow

2009-12-19 Thread doug
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

[Rails] Re: Attempt to write a readonly databae

2009-12-15 Thread doug
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

[Rails] Re: Attempt to write a readonly databae

2009-12-15 Thread doug
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

[Rails] Re: Attempt to write a readonly databae

2009-12-14 Thread doug
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

[Rails] Attempt to write a readonly databae

2009-12-13 Thread doug
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

[Rails] Re: runner complaining that existing method is missing

2009-11-29 Thread doug
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

[Rails] runner complaining that existing method is missing

2009-11-28 Thread doug
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

[Rails] Re: runner - path to Ruby

2009-11-28 Thread doug
> 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

[Rails] runner - path to Ruby

2009-11-27 Thread doug
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

[Rails] Re: Backup copy of the application layout

2009-11-25 Thread doug
> 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

[Rails] Backup copy of the application layout

2009-11-24 Thread doug
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

[Rails] Re: ruport-how to send email to multiple recipients

2009-11-17 Thread doug
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

[Rails] Firefox - Redirect Loop

2009-11-13 Thread doug
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.

[Rails] What does /2 represent in a division calclulation ....hangs console

2009-11-09 Thread Doug
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

[Rails] Re: mini_magick - 2 clarifications

2009-11-07 Thread doug
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

[Rails] mini_magick - 2 clarifications

2009-11-05 Thread doug
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

[Rails] Re: Using Initializers

2009-10-20 Thread doug
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

[Rails] Re: Using Initializers

2009-10-19 Thread doug
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

[Rails] Using Initializers

2009-10-18 Thread doug
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

[Rails] mini_magick

2009-10-14 Thread doug
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,

[Rails] Image Resizing

2009-10-06 Thread doug
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

[Rails] Atom Feed

2009-10-04 Thread doug
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

[Rails] Routing/format (I'm lost.)

2009-10-01 Thread doug
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

[Rails] Rendering Text in a New Frame

2009-09-28 Thread doug
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

[Rails] Autoincrement

2009-09-23 Thread doug
. 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.

[Rails] Expecting field value and getting record

2009-09-13 Thread doug
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

[Rails] Passing Parameters to a Re-Rendered View

2009-08-21 Thread doug
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

[Rails] Passing Values to Views

2009-08-21 Thread doug
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

[Rails] Can't Save Integer Zero to SQLite3 DB

2009-08-15 Thread doug
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.

[Rails] Deploying Controller Actions

2009-08-12 Thread doug
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

[Rails] ActiveRecord - <%= and <% yielding different records

2009-08-06 Thread doug
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

[Rails] acts_as_tree

2009-08-05 Thread doug
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

[Rails] Re: Cannot seem to include my own module & classes into Rail

2009-08-03 Thread Doug Livesey
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

[Rails] Cannot seem to include my own module & classes into Rails ap

2009-08-02 Thread Doug Livesey
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,

[Rails] Re: quote_ident

2009-08-01 Thread Doug
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   2   >