Skip to content

Instantly share code, notes, and snippets.

@prsanjay
Created June 30, 2019 08:07
Show Gist options
  • Save prsanjay/4f1eb87c29f2cf3e2bcc7b76336b8365 to your computer and use it in GitHub Desktop.
Save prsanjay/4f1eb87c29f2cf3e2bcc7b76336b8365 to your computer and use it in GitHub Desktop.
Copy Rails Console output to the file
f = File.new("recome.txt", 'w')
f << Recommendation.last.primary_plan_cost
f.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment