How do you declare a Rake task that depends on a parameterized task?

Args are passed down through the call stack. You just need to make sure your top-level task captures all the arguments all of the dependencies require. In your case you’ll want to put first_name and last_name on the send_letter task. Here is an example that shows named arguments defined elsewhere flowing into the dependency (even … Read more

PG undefinedtable error relation users does not exist

At first, you shall detach all connections out of database. By default you use the development environment. Then try to reset database with the following: rake db:reset The rake db:reset task will drop the database and set it up again. This is functionally equivalent to rake db:drop db:setup. This is not the same as running … Read more