Top "Rake-task" questions

Task is the basic unit of work in a Rakefile.

PG undefinedtable error relation users does not exist

I saw this question up before, but only for rspec. I haven't created test yet because it's too advanced for …

ruby-on-rails database ruby-on-rails-3 oauth-2.0 rake-task
Simple rails rake task refuse to run with error "Don't know how to build task", why?

I have this simple rake task which refuses to run. I just don't see why it looks correct. Who can …

ruby-on-rails rake rake-task
How to execute commands within Rake tasks?

I have the rake tasks in my rails application. i want to run a commandline commands with in rake task. …

ruby-on-rails shell command-line rake rake-task
rake db:create encoding error with postgresql

I'm importing an existing rails project that I was working on into my new arch linux system, I already installed …

ruby-on-rails-3 postgresql encoding rake-task
How to build task 'db:populate'

1 namespace :db do 2 desc "Fill database with sample videos" 3 task :populate => :environment do 4 require 'faker' 5 Rake::Task['db:reset'].…

ruby-on-rails ruby-on-rails-3 rake rake-task
Rails Rake Task - Access to model class

I would like to define a Ruby (1.9.2)-on-Rails(3.0.5) rake task which adds a user to the User table. The file …

ruby-on-rails rake-task
Skipping the first line when reading in a file in 1.9.3

I'm using ruby's File to open and read in a text file inside of a rake task. Is there a …

ruby rake-task ruby-1.9.3
Rake aborted! Don't know how to build task

I have a rake task in semester.rake file. It looks like this namespace :db do desc "generate semester data" …

ruby-on-rails rake rake-task
Rails: Why am I getting uninitialized Constant for a rake task, Rails 4.1.8

I have this strange issue where if I do: namespace :xaaron do task :get_roles do roles = Xaaron::Role.all …

ruby-on-rails ruby ruby-on-rails-4 rake rake-task
how to run rake task in background in rails

This is my command bundle exec rake resque:work QUEUE="*" --trace I want to run this command on my server …

ruby-on-rails-3 ruby-on-rails-3.2 rake rake-task