ruby - How to get path name of a file in Rails 5.0? -
i working on rails script, , need path name of file uploaded, did same in laravel recently, quite easy, here code used @ time:
$img->getpathname();
but don't have idea how same in rails.
this guide having various ways pathname, may helps you:
https://ruby-doc.org/stdlib-1.9.3/libdoc/pathname/rdoc/pathname.html
Comments
Post a Comment