Horje
ruby filename from path Code Example
ruby filename from path
path = "/path/to/file.ext"

File.basename(path) # 'file.ext'




Ruby

Related
kill rails Code Example kill rails Code Example
get current year in ruby Code Example get current year in ruby Code Example
rails undo scaffold Code Example rails undo scaffold Code Example
rails include route helpers in console Code Example rails include route helpers in console Code Example
rails g resource Code Example rails g resource Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
21