Reputation: 7210
I highly doubt it is possible but thought I'd post and ask to confirm.
I have written a very small ruby script to bulk rename a folderful of files but I need to use Rail's parameterize method on the filenames. I am not inside a rails project as I am running it from within the directory of files I wish to rename. I also do not wish to make this a fully blown rails app.
Does anyone have any thoughts on how I can achieve this?
Neil
Upvotes: 4
Views: 539
Reputation: 230286
This method is defined in ActiveSupport (part of Rails). You can use ActiveSupport outside of Rails. Just require the lib
require 'active_support/core_ext'
# now parameterize method should be available
Upvotes: 4