37661Send a file with; send_filehttp://rubyonrailsrailway.com/2008/3/26/send-a-file-with-send_fileAfter 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 yetRuby on Rails > Tips and TutorialsApr 3, 2008Greg Winnsend email to Greg Winn
Description: Overlap Image Viewer lets you quickly associate an image with any element on your page, so that when the mouse rolls over it, the desired image is shown on top of it. A nice "dimming" effect is applied to the element while the loaded image is shown. You simply give an element a special CSS class name plus a title attribute pointing to the URL/path of the desired image, and that's it! Rolling over that element now triggers the effect.
DynAjax is a handy tool to help you create interactive websites and applications. Using it, you can easily gain several benefits of the Ajax technology. While acting in the background, it lets you concentrate on the more important things. DynAjax is a crossbrowser and platform independent solution.
AVS iRadio Recorder is a convenient in use compact internet radio recorder application with the help of which you can record music from Internet radio stations.
Servera is your solution for monitoring a single or multiple servers directly from your desktop! No longer will you need to depend on 3rd Party service providers or server-side scripts to monitor your servers!
Reboot Servers & Restart Services**
Get instant notification when there's a problem.
Visually Monitor All services.
phpLD Article is a full featured photo album script.
Another great advantage of phpLD Article is is uses the same engine as PHP Link Directory, so it means there are many templates available and also lots of people that are experienced with using and modifying the script.
We have a very active support forum where people are able to get help, discuss features, request mods, or release mods. If you have questions, you will find answers in the support forum, and we strive to answer all questions.
Inout Adserver is powerful, feature rich, fully customizable PayPerClick advertising service script from inoutscripts.com. Advertisers can register into adserver and can post their text or banner PayPerClick(PPC) ads. Publishers can generate html code corresponding to their preferred style and can paste it in their web site to show ads relevant to their page content. Adserver administrator can define the commission to share with publishers. Administrator can create public service ads to show them up in partner webpages irrespective of the keywords used to search or the content of the page where the ad code is placed. The entire system is template driven which allows you to easily modify the advertiser, publisher pages to match your web site look
With every web site we develop, we include MyCMS free of charge. It is as easy to use as your favourite word processor. Don't believe us? Try it out for yourself by logging into the Content Management System via the form to the right.
Build Your Very Own Interactive Website With Content - Articles, Jokes, Games, Pictures/Images, Audio Clips, Videos And Much More... With Just A Few Simple Clicks!
Your Site Visitors Will Tell You Which Content They Like Most By Rating It!
This Guestbook is a System written in ASP.NET 2.0, which uses Serialization to store messages as serialized XML text files. It supports multiple languages and smiley faces, as well as an administrative interface to remove unwanted messages.
The first version of the HTML Website Comments System ® (WCS) is now officially released. This allows you to plugin visitors comments to each and every page of an otherwise static html web site. For each single page, the flexibility, features, ease of graphic customization of the current enhanced version are available. Manage the comments in your whole website from a single, central script with an easy and intuitive online interface.
Simply include the useronline.php page on all the pages you want to track. You'll get the users hostname, path, and date/time of when they were on. Use the tracking.php page to view them.
See this tutorial and learn how to create photo listing using some special flash effects and tricks. You don't have to use action script code to make this tutorial. You can use this tutorail for every photo presentation, listing, animation, photo banner...
CoolCat Counter is a great way to let users know how much traffic your site gets. A web counter is also a simple way for webmasters to measure site activity. Plus, a hit counter adds a bit of interactivity to your site. We provide the coolest, most feature-rich, reliable hit counters offering features you can't find anywhere else for free
An easy way to nicely display photos on your site, this gallery can be used to show jpg, gif, swf or png files.
The gallery can work as standalone application. You can add/remove photos without using the flash program, the configuration file can be edited with a simple text editor.
The best way to generate genuine traffic is by referrals, and our unique importer script helps you do just that.
Your visitors simply provide their email address and password and our script fetches a list of contacts into an array/list. Your application can then choose to send emails to these contacts, store them in your database, etc.
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.
The first thing you are going to have to is find a new web host or question your web hosting company about running Ruby scripts as CGI. You can always run things locally on your PC but where the fun in that? The usual file ending is .rb. I say this because I have checked three Rails hosters and found that all three had problems running a plain CGI script. I had to email each one and wait for that magic moment when my "hello world" testing worked. Once that was done the rest was cake.
Go to RubyForge and download the latest version of the Ruby one-click Installer for Windows. Install it by running the setup program. I recommend installing it to c:
uby
2. Download and install RubyGems.
3. When Ruby and RubyGems have both been set up, run this in a terminal/command prompt window to install Ruby on Rails and all its dependencies:
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.
SUSIE is a simple application and shows a side of Ruby that other programming languages lack, the ability to be straight forward and small. Ruby does have muscle and lots of it. It is a pure object oriented programming language like Java. But you can still use it as a quick procedural language, embedded in HTML as shown by the SUSIE Photo Gallery.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.