Categories
Ruby on Rails → Tips and Tutorials

Send a file with; send_file

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/*usern ame*/*thegif.gif*. ...
  • Platforms
    • Linux,
    • Windows,
    • FreeBSD,
    • Mac OSX,
    • Sun Solaris
  • Licenses
    • Freeware
DETAILS

Using Magic Multi-Connections

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.
  • Platforms
    • Linux,
    • Windows,
    • FreeBSD,
    • Mac OSX,
    • Sun Solaris
  • Licenses
    • Freeware
DETAILS

visual_effect with a delay

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.
  • Platforms
    • Linux,
    • Windows,
    • FreeBSD,
    • Mac OSX,
    • Sun Solaris
  • Licenses
    • Freeware
DETAILS

Listing files in a directory with Rails

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 f...
  • Platforms
    • Linux,
    • Windows,
    • FreeBSD,
    • Mac OSX,
    • Sun Solaris
  • Licenses
    • Freeware
DETAILS

Ruby User Guide

Developing Ruby on Rails applications requires an ability to program in the Ruby language. This guide, written by the creator of Ruby, provides an easy to follow guide to the Ruby programming language, covering all the important topics including vari...
  • Platforms
    • Linux,
    • Windows,
    • FreeBSD,
    • Mac OSX,
    • Sun Solaris
  • Licenses
    • Other Free / Open Source License
DETAILS

Wonderful Ruby on Rails

This will show how to validate your fields, by adding the lines of code into your controller. Very easy to use and duplicate in your ROR application.
  • Platforms
    • Linux,
    • Windows,
    • FreeBSD,
    • Mac OSX,
    • Sun Solaris
  • Licenses
    • Freeware
DETAILS

Rails Photo Gallery

This article contains step-by-step tutorial for creating photo gallery in Ruby On Rails -- basically a list of jpeg images with uploading/editing support. Command-line ImageMagick tools are used to generate thumbnails and determine image width and he...
  • Platforms
    • Linux,
    • Windows,
    • FreeBSD,
    • Mac OSX,
    • Sun Solaris
  • Licenses
    • Other Free / Open Source License
DETAILS

How to allow some safe HTML in Rails projects

This article contains simple Ruby function ae_some_html which allows usage of basic HTML tags and converts everything else to entity-escaped HTML code.
  • Platforms
    • Linux,
    • Windows,
    • FreeBSD,
    • Mac OSX,
    • Sun Solaris
  • Licenses
    • Other Free / Open Source License
DETAILS

Installation of Ruby on Rails in Fedora Core 6

Installation of ruby on rails with Apache 2.2 and Mongrel on Fedora Core 6.
  • Platforms
    • Linux
  • Licenses
    • GPL
DETAILS

Ruby on Rails or CakePHP

Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern. Ruby on rails is awesome. It is also an easy to language to learn. Though being very popular among the people, but i ha...
  • Platforms
    • Linux,
    • Windows,
    • FreeBSD,
    • Sun Solaris
  • Licenses
    • GPL
DETAILS

Page:
©2003-2019 jCay.com