Scriptads Home
Search script
Advanced Search
Show Categories
Add New Script
Modify script
About Us
Terms Of Use
Link To Us
Recommend Us
Contact Us
Links
List by category
Most popular
 1. WeberDev's Forums
 2. Circular preloader
 3. Easy payments...
 4. FFTW with OpenCV
 5. Phase...
 6. Basic...
 7. Menu with...
 8. UserGate...
 9. PixExpose
10. Two Levels XML...
more ...
Top rated
 1. Pixel Ad Script
 2. JavaScript...
 3. Essential PHP...
 4. Flash strip...
 5. Loan Calculator
 6. Building...
 7. clanBox Gaming...
 8. Smash Bugs | ...
 9. WRQ Reflection...
10. UserGate...
more...

Listing files in a directory with Rails

 Script details


Script Title :  Listing files in a directory with Rails
Version :  
Author :  Greg Winn
Platform :  linux, windows, freebsd, osx, sun
Home URL :  http://www.winn.ws/archives/118  
Download URL :   
Demo URL :    
Category :  Ruby on Rails - Tips and Tutorials
Price :  
 
Description :
In a recent application I am building I needed to pull file names and directory names from a local directory. I searched all over the net for this and found nothing. After reviewing a few of rails built in functions I came across Dir.glob(). If you feed this method a path to a directory it will then come back with an array of the names and directories listed.
 
Average Rating: 0.00
Number Of Votes: 0

Select Your Rating:

poor         best


Back