NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Browse a Listing

Subscribe to this category

Top > Ruby on Rails > Tips and Tutorials

Popular Tags

Free Script links
Sort By :
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.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Mar 3, 2008 Hits: 24 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

One of the coolest things I ran across in RJS was the delay method. This delay method will do just that and delay a number of seconds. So lets say you need to highlight something that was just added to the page after the user submits it. I would like it to add to the page then wait 1 second and then highlight. The following is the code for that.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Mar 24, 2008 Hits: 1 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

This plug-in is a great one! I have found a few bugs but it did the job just as i needed it to. I am using this plug-in to connect to three databases, where i am selecting, updating, inserting, and deleting. By adding this plug-in i was able to set my databases in the database.yml file and name them as i wanted. Next i adding two modules to my environment.rb file. After that i was able to connect to each of the databases with ease.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Apr 3, 2008 Hits: 0 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

After uploading a file to your server/database you may want users to download it, and send_file works great for just that! Lets say you are allowing users to upload "gif" files to your /RAILS_ROOT/images/*username*/*thegif.gif*. Now you want to allow them to download them or other users to download the pictures. This example will provide code and database structure for you, but i will not be providing any documentation on how to upload the file just yet
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Apr 3, 2008 Hits: 16 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

Pages: [< Previous] 1 2 3

Category Jump :