Tutorials & Tips
Results 1 - 20 of 31
Set up Ruby on Rails in Windows
Here's a quick Howto on setting up Ruby on Rails for Windows.
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*. Now you want to allow...
(show more)
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.
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.
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 feed...
(show more)
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...
(show more)
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.
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...
(show more)
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.
SEO on Rails
Tips and Tricks for improving your RoR app so it is search engine friendly.
eRuby: SUSIE a Simple Photo Gallery in Ruby
SUSIE is a simple image gallery that is an opensource eRuby application. It is interesting because it shows how Ruby, a powerful and fully object oriented programming language can be used to do the tiniest of tasks. Ruby can be used as a fast procedural...
(show more)
eRuby: Getting Started with Ruby on the Web
How to setup a Windows development PC and a shared web host environment so you can start developing Ruby web applications in the same way you do PHP, embedded in HTML. Ruby is easy to learn and has features that make it more useful than other web...
(show more)
eRuby: Getting Started with Ruby on Windows IIS
Yes, you can run Ruby on Windows and eRuby on Windows IIS web servers. Ruby has many features to process text files and to do system management tasks as languages like Perl or Python do. Ruby is also a great web scripting language. Follow this tutorial...
(show more)
eRuby: Using Ruby DBI for database connectivity
If you want create a dynamic web page that works on more than just MySQL then try Ruby DBI. Ruby DBI will help you create a single database interface for connecting your web application to multiple database types like MySQL, PostGreSQL and SQL Server....
(show more)
eRuby: How to use Ruby CGI and ERB templating for Web Pages
Ruby is a great language to use to create a dynamic website. Here's how to use it to do CGI scripting. Using eRuby ERB templating to seperate the HTML from the script makes CGI a perfect alternative to using the Rails framework. Easy and faster than you...
(show more)
Rails and SQL queries
Ruby on Rails is Model-View-Controller web-application framework. Rails uses ActiveRecord database abstraction classes to work with SQL tables. However, sometimes it is more convenient to work with plain SQL queries(without any model classes) for...
(show more)
150+ Ruby on Rails Tutorials
Over the last couple of months, I have collected over 150 Ruby on Rails links at Top-Ten-Tutorials.com
Faster pagination in Rails
RoR's default pagination methods have a number of bottlenecks. In this guide you will learn how to use paginating_find to create fast, reusable and good looking pagination code for your projects. This method also works for pagination of find_by_sql...
(show more)
The Basics of Ruby Arrays
Ruby has many exciting object oriented features, but a large percentage of your code will revolve around arrays. In this valuable tutorial, we’re going to show you some tips and tricks for this powerful data structure.
Rails Best Practices, Tips and Tricks
Because Rails is a young framework, I thought it would be helpful to write up what I consider best practices when coding with it both for my new coworkers and the web at large. Here’s my current draft. Feel free to critique and comment. I’m...
(show more)
