ruby - Rails on Heroku, how do I populate DB using POST? -
i want populate info using rake db:seed. can run code fine. however, on local dev seed.rb file using:
app.post( uri.parse('/check_ins'), { "email" => "test@email.com" } ) on heroku, throws error:
nameerror: undefined local variable or method `app' main:object i tried using net::http.post_form threw error:
nomethoderror: undefined method `request_uri' ruby-on-rails ruby heroku
No comments:
Post a Comment