search for: portal_id

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

2006 Jan 26
3
Using variables within a string - The function doesn''t pass the value?
Hello everyone, As a beginner to ROR, I am very confused regarding why the following is happening. If my function is defined as def self.home_categories (portal_id) find(:all, :conditions => [ "portal_id=?", portal_id ] ) end the following doesn''t works (the database is queried with a value of 0. portal_id=1 @categories = Category.home_categories (:portal_id) but this works @categories =...
2006 Jan 30
2
:condition not being applied
I am using acts_as_taggable and everything seems to be working except that :condition => "tags_resources.portal_id=#{portal_id}" is not being applied. @resource_pages = Paginator.new self, Resource.find_tagged_with(:any => tag, :condition => "tags_resources.portal_id=#{portal_id}").length, 25, @params[''page'']; @resources = Resource.find_tagged_with(...
2006 Jan 24
14
engines
This page: http://www.rails-engines.org/download makes it sound like SVN is optional for using engines, but when I try to run the second command ("ruby script/plugin install engines"), I get the NoMethodError on nil as described in the second issue reported here: http://www.rails-engines.org/wiki/pages/Engines+plugin%3A+Known+Issues So, which is it? Do I have to have SVN installed
2006 Feb 12
7
ROR Recipes Beta: Why use taggings instead of tags_contacts? NoMethodError tag_with?
...orite:0xb6f5d594 @new_record=false, @errors=#<ActiveRecord::Errors:0xb6f54bb0 @base=#<Favorite:0xb6f5d594 ...>, @errors={}>, @new_record_before_save=false, @attributes={"updated_at"=>Sun Feb 12 15:30:38 CST 2006, "title"=>"Home Pages title", "portal_id"=>0, "member_id"=>0, "id"=>12, "url"=>"http://home.com", "desc"=>"My note about this favorite", "created_at"=>Sun Feb 12 15:30:38 CST 2006}> >> f.tag_with("home tag1 tag2") NoMetho...