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

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -