search for: jkahn_117

Displaying 7 results from an estimated 7 matches for "jkahn_117".

2006 Jul 10
7
How to obscure/encrypt password parameter?
Hi all- I am building an application that includes a login screen. During development I found that user passwords are logged by Rails in plain text -- this will not be acceptable to my users. Is there a way to obscure/encrypt incoming password parameters or not write them to the log files at all? One thought was to use Javascript, but I was not sure how secure that would be. Thanks, Josh
2006 Apr 07
2
ActiveRecord find all based on array -- need ids from array
Does anyone know if it is possible to perform an ActiveRecord find by passing in an array? I would like to be able to do the following: MyModel.find(:all, :conditions => ["user_id in (?)", users]) The problem I run into is that the returned SQL contains the to_s() output of the User object, not the ids of those users. Is it possible to change this behavior? I attempted to
2006 Apr 25
1
DateTime problem in AWS
I am trying to implement a web service that returns a datetime stamp as part of the structured object returned in the response. As noted in another post (http://www.ruby-forum.com/topic/59762), there seems to be a problem with the DateTime.parse method in that it does not match the year. Is anyone aware of workaround for this issue? My current idea (a hack, but it seems to work) is to
2006 May 15
0
Pagination with habtm
Hello- I am building a discussion board-like application in which messages are associated with one or more workgroups via has_and_belongs_to_many. I would like to be able to display to my users a distinct list of messages for the workgroup(s) that they are part of in paginated form. The SQL for this query would be something like the following: select distinct (m.id), m.title, m.created_at
2006 May 23
0
Use DB view to back model class?
Hi all- Is it possible to back a model class with a database view instead of a database table? If so, how? Thanks, Josh -- Posted via http://www.ruby-forum.com/.
2006 Mar 29
0
How to organize models into modules
Being a bit of a neat freek, I would like to organize the models in my Rails app into modules. I have created the directory structure as follows: models |- module1 |- mymodel.rb And my model class code is: module Module1 class Mymodel ...some stuff end end How do I include this model in my controllers without referencing it as "Module1::Mymodel"? Also, how do I
2006 Dec 07
2
Format dates prior to index
Hi all- I would like to enable search in my application via Ferret and a number of my searchable classes contain dates (of type Time). When these classes are indexed, the dates are written per the standard to_s output (e.g. "Wed Dec 07 08:56:04 CDT 2006"), which is not suitable for date range queries. Is it possible to format the dates before they are indexed (e.g.