Re: [Rails] Form Bots and the Authenticity Token

2012-07-29 Thread Tom Rossi
ing it back with the authenticity > token. > > The only real way to guard against bots is Captcha > > > > > > On Jul 27, 2012, at 4:24 PM, Tom Rossi wrote: > > How are bots able to create authenticity tokens that are valid? I thought > for sure authenticit

[Rails] Form Bots and the Authenticity Token

2012-07-27 Thread Tom Rossi
How are bots able to create authenticity tokens that are valid? I thought for sure authenticity tokens would make my forms bullet proof for bots. Thanks, Tom -- 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] Rails 2.3.11 config.ru File

2012-02-21 Thread Tom Rossi
I have a Rails 2.3.11 project that worked fine until I added the config.ru file (required by POW). Now when I deploy to Apache/ Passenger, I get the error: Missing the Rails 2.3.11 gem. The config.ru file contains the code I pulled form an old Rails guide: require "config/environment" use Rails:

Re: [Rails] Apache + Passenger on OSX

2011-05-27 Thread Tom Rossi
Thanks, I did try changing that with no joy. Anything else you can think of? On Fri, May 27, 2011 at 12:49 PM, Leigh Daniels wrote: > Just a guess: "sites" is not capitalized in your path and it is in OSX. > > **Leigh > > >I am using the default Apache install that comes with OSX and Passenger

Re: [Rails] Changing Rails Default Date Parse Option

2011-05-17 Thread Tom Rossi
On Tue, May 17, 2011 at 4:54 PM, Colin Law wrote: > On 17 May 2011 21:37, TomRossi7 wrote: > > > > > > On Tuesday, May 17, 2011 3:51:38 PM UTC-4, Colin Law wrote: > >> > >> On 17 May 2011 17:11, TomRossi7 wrote: > >> > Does anyone know how to change the default option for the Date.parse > >> >

Re: [Rails] Changing Rails Default Date Parse Option

2011-05-17 Thread Tom Rossi
What does it matter where the data comes from? ActiveRecord parses it the same? If you don't know, or if it isn't possible, thats fine, but I don't want to overcomplicate the question. On Tue, May 17, 2011 at 4:21 PM, Colin Law wrote: > On 17 May 2011 20:57, TomRossi7 wrote: > > ActiveRecord,

Re: [Rails] Re: Database relationships question.

2010-08-27 Thread Tom Rossi
It sounds like you should avoid has_and_belongs_to_many since you are tracking attributes of the join relationship. Maybe something like this: character has_many objective_assignments character has_many objectives, :through => objective_assignments character has_many quest_assignments character h

Re: [Rails] Re: /!\ FAILSAFE /!\ error with Rails 2.3.4

2010-02-02 Thread Tom Rossi
Interesting! I've found the problem, but not the fix. I was store my ActiveRecord errors in the flash as shown below: flash.now[:errors]= @object.errors This apparently causes problems when you are using PaperClip and there is a validation issue. It may be trying to put the file in the ActiveR

[Rails] Re: Connecting to MS SQL from Snow Leopard

2009-10-06 Thread Tom Rossi
Can you post how you set up unixodbc to resolve the issue? On Sun, Oct 4, 2009 at 10:49 AM, Fuse wrote: > > I was having this same problem. > > I switched from iODBC to UNIXODBC and this problem went away for me! > > Thanks for your help! > > > > --~--~-~--~~~---~--~

[Rails] Re: Encode and Encrypt Email Addresses

2009-09-29 Thread Tom Rossi
Jeff, I like the idea of using a real piece of data (the id) and then a hash to validate that its not some random get request! That is a nice, slick, way to avoid complicated encryption or junking up the database. Thanks! --Tom On Mon, Sep 28, 2009 at 7:47 PM, Jeff Lewis wrote: > > Hey Tom,

[Rails] Re: Encode and Encrypt Email Addresses

2009-09-28 Thread Tom Rossi
1. I can't use the actual email address because AOL will redact the address if a complaint is filed. 2. I can't use the actual ID, because someone could have a field day unsubscribing people 3. I could store a random string in the db, but that seems like overkill Is there a simple way to obfusc