[Rails] rake task error

2011-04-07 Thread Ichiro Saga
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

Re: [Rails] rake task error

2011-04-07 Thread Bryan Crossland
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

Re: [Rails] Rake task error

2011-03-10 Thread Colin Law
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?

[Rails] Rake task error

2011-03-09 Thread anu
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