Hi, guys. I wrote a rake task that called a method in model A.
in app.rake
task :update_number = :environment do
A.update_method
end
in model A
def self.update_method
t1 = A.find.all
...
..
end
When I ran the rake task, it returned an error undefined local variable
or
On Thu, Apr 7, 2011 at 12:58 PM, Ichiro Saga li...@ruby-forum.com wrote:
Hi, guys. I wrote a rake task that called a method in model A.
in app.rake
task :update_number = :environment do
A.update_method
end
in model A
def self.update_method
t1 = A.find.all
...
..
end
On 9 March 2011 11:44, anu anuhema1...@gmail.com wrote:
hi friend,
If i am running the rake task in my rails 3 application
i am getting execution expired.How to resolve this error
You will have to give us a few more clues. Which OS are you using?
Which versions of Ruby and Rails?
hi friend,
If i am running the rake task in my rails 3 application
i am getting execution expired.How to resolve this error
--
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
4 matches
Mail list logo