-
Notifications
You must be signed in to change notification settings - Fork 0
Ruby
Nimrod edited this page Dec 1, 2019
·
1 revision
-
Iterate over lines of stdin:
ruby -nle 'print $_'
(or usea=$_.split
to get the words of the line)
-
Execute SQL from the rails console
ActiveRecord::Base.connection.execute("TRUNCATE table_name")
-
Test path helpers, routes
routes = Rails.application.routes.url_helpers routes.payments_url(10)