#rails
15 posts tagged rails. Clear filter
-
Deploying to Dreamhost
Remember to include the host declaration in the database.yml file when you deploy to Dreamhost. Dreamhost does not use "localhost" which is typically the default setting when using the mysql...
-
Workshop Dog
Workshop Dog is a free events calendar for dog training workshops and group lessons.Users can list their training workshops as well as create a business profile. Jobs may be posted to the site for...
-
Natural Dog Training Buzz
NDT Buzz is a companion news site to Natural Dog Training.News and information about Natural Dog Training is generated on the web from many different sources. Blogs, tweets and comments are...
-
Active Record Find Methods
Active Record find methods for selecting range from http://charlesmaxwood.com/notes-from-reading-activerecordbase/
-
Hacking Rails Plugins
Using the Acts as Taggable On plugin to add categories to a model class, I wanted to override the to\param method and place the name attribute in the url. The plugin, installed as a gem, source...
-
Setup Wildcard Subdomain on Localhost for Development Work without /Etc/hosts TomFoolery
Step 1. Open up your browser and visit http://www.hexxie.com. You can also go to anything.hexxie.com and everything.hexxie.com, which will resolve to your local machine (assuming it's localhost at...
-
Extending Rails Form Builders
Extending forms in Rails is simple and will greatly reduce the amount of code in your views. This example is taken right from the Agile Web Development book on Rails(2.1.\) with one minor tweak. I...
-
Ruby Strftime Day Without the Leading Zero
-
Placing an Authenticity Token in a Rails Form
-
Ruby on Rails, jQuery and YUI API Docs Available as Mac OS X Dictionary Binaries
I came across an awesome tool this morning. Priit Haamer has chunked Ruby on Rails, jQuery, and some of YUI documentation into native Mac OS X dictionary binaries. This lets you search those API...
-
A Through Z
How to print the alphabet in Rails very easily.
-
Trouble Using Attr_Accessor in Rails Models and Forms
You might use the attr\accessible method to create getters and setters for a class that has attributes which don't map directly to corresponding fields in a database. For example let's take the...
-
Make Rails Lib Module Methods Available to Views
If you create a module in the lib/ directory of your Rails application you won't have access to those methods in your views. If you don't want to put those methods in a helper file, you need to add...
-
Fixing MySQL for Rails 2.2 Development on Mac OS X
Oh what trouble Rails 2.2 and MySQL (on Mac OS X) can be. Rails, as of version \= 2.2, no longer comes bundled with the MySQL adapter. This means you'll need to install it yourself, but it appears...
-
Using Your Partials in Your Liquid Templates
I'm working on a project that requires users/designers be allowed to edit the layout of their site. I'm using Liquid, Ruby templating system developed by the folks at shopify.com. Doing a little...