On 2 February 2012 09:36, amvis <[email protected]> wrote: > colin, The data type of bill_date is date
date is not a class type. It could be Date. Do you mean that the column type in the database is date or that it is a string containing a date or what? What does it show for the column type in schema.rb? What happens when you do bill_date.month as I suggested? By the way please remember to include the relevant parts of the previous messages in your reply otherwise it is difficult to follow the thread (particularly for those who may find the thread later and hope to learn from it). Also please insert your reply at appropriate point in previous message rather than posting at the top of the new mail. Thanks. Colin > > > Thank you > vishnu > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/usNqgFvRODcJ. > > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. -- gplus.to/clanlaw -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

