Rake file with Controller

3 views
Skip to first unread message

amvis

unread,
Jan 24, 2012, 8:10:19 AM1/24/12
to rubyonra...@googlegroups.com
Now am in a situation, that is  I have one query for selecting the data from database, so when the rake file is running, this query need to execute, and do the operation......My problem is how to execute this query.? One thing i got in mind, call a method in a rake, in which method write the query for the operation,i don't know the correct way...How to rectify this problem..? 
i mean have any other solution ? or can i call a class or a controller from the rake..?

Thank you
vishnu
Reply all
Reply to author
Forward
0 new messages