search for: scategory

Displaying 4 results from an estimated 4 matches for "scategory".

Did you mean: category
2008 Aug 07
1
string comparison
Hi, I have a package where I do things like this a lot: if(strncmp(CHAR(asChar(Scategory)), "chance", 6) == 0) category = h_category_chance; else if(strncmp(CHAR(asChar(Scategory)), "utility", 7) == 0) category = h_category_utility; else if(strncmp(CHAR(asChar(Scategory)), "decision", 8) == 0) category = h_category_decision; else if...
2006 Dec 11
6
easy question, how would i search a grandparent???!
hi, i have this in my code Article.find_by_contents("#{searchstring} +city:#{passedincity}") well that returns to me only articles that belong to whatever the user selected in city. now is it possible to search the grandparent? for example class country has_many states class states has_many cities belongs_to country class city belongs_to states ...... i would like to search
2005 Dec 20
9
Rails Configuration Question
...om a working unit test that accesses the database: require File.dirname(__FILE__) + ''/../test_helper'' class BugTest < Test::Unit::TestCase def setup @bug = Bug.find(1) end def test_read assert_equal 1, @bug.id puts "Category => " + @bug.category.sCategory puts "Project => " + @bug.project.sProject puts "Area => " + @bug.area.sArea puts "PersonOpenedBy => " + @bug.person_opened_by.sFullName puts "PersonAssignedTo => " + @bug.person_assigned_to.sFullName end end This works perfectl...
2006 May 15
33
acts_as_commentable release
I now have the acts_as_commentable plugin up on RubyForge. This plugin will allow you to add comments to any active_record object in your Rails application. So far the directions are simple, and there are only a few features: To install: ruby script/plugin install svn://rubyforge.org//var/svn/commentable/acts_as_commentable In the readme there is a sample migration you will need to use, with