Sunday, December 11, 2011

[Rails] logic problem in ruby on rails with data retrieve from MySQL


For my ruby in rails  application. i need to  display the report of last one year. so i decide to take the current date and subtract one then will get the last year. And then take the datas from the mysql with that new date..
is this correct logic?.... or can i  get value from the MySQL,  after done the one year subtracted operation in MySQL......? 


--
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/-/ievqg193-REJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate