Re: [Rails] rake task error

2011-04-07 Thread Bryan Crossland
On Thu, Apr 7, 2011 at 12:58 PM, Ichiro Saga 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 > > When

[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 m

Re: [Rails] Rake task error

2011-03-10 Thread Colin Law
On 9 March 2011 11:44, anu 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? Does rake go away

[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 rubyonrails-tal