Category Archives: Ruby

Comments and notes about developing using Ruby

Ignore files and folders via TortoiseSVN

Why ignore? Ignoring a file or folder from the Subversion system can reduce a lot of complexity from the repository. For example, if you edit your code via NetBeans, you probably don’t want to version control the .nbproject folder it … Continue reading

Posted in Ruby | Comments Off on Ignore files and folders via TortoiseSVN

Gathering SQL data with TempObject

Another place I use TempObject is to organise the data created from a custom SQL statement. I use custom SQL statements when I need to gather data from three or more tables or do complicated JOIN or CASE statements. It … Continue reading

Posted in Ruby | Comments Off on Gathering SQL data with TempObject

Using TempObject with a search form

Here is how I use TempObject with a search form. I’ll use an example of creating a form to return balls. In the controller I first create a TempObject with the attributes I want to offer in the search form: … Continue reading

Posted in Ruby | Comments Off on Using TempObject with a search form

Temp Object

I found creating search forms in Rails a little awkward because most of the built in Rails form elements expect to work with attributes of an object, whereas for a search form I just needed to pass a set of … Continue reading

Posted in Ruby | Comments Off on Temp Object

Using a shared location for common code

I am a book lover, and have built up a lot of my Ruby and Rails knowledge from an ever expanding collection of books. No matter how big or small, most give me some new information or way of dealing … Continue reading

Posted in Ruby | Comments Off on Using a shared location for common code