Displaying 4 results from an estimated 4 matches for "collection_singular_id".
Did you mean:
collection_singular_ids
2006 Dec 20
7
has_many :through does it support collection_singular_ids ?
Good evening list members,
I have the following model:
class Author < ActiveRecord::Base
has_many :authorships
has_many :books, :through => : authorships
end
Should I be able to do the following?
Author.find(:first).book_ids = [1,2,3]
I ask, because it doesn''t. The docs state that it should, but it
doesn''t specialise in the case of a :through
This
2006 Aug 03
5
Cannot find gem for Rails error from dispatch.cgi
Hi All,
I''m developing a Rails app with Rails v1.1.4, but when I upload it to
Dreamhost and try to serve it with dispatch.cgi, I get the error "Cannot find
gem for Rails =1.1.4". However, I have installed the 1.1.4 gem in my home
directory and set GEM_PATH to look there; additionally, rake throws no errors
and "rails -v" displays "Rails 1.1.4". Any
2005 Dec 28
1
making has_and_belongs_to_many save more elegant
When a user creates a post I also want to save all the tags
associated with it. I do that in the post_controller like this
presently:
def save
@post = Post.new(@params[:post])
@tags = Tag.new(@params[:tags])
@post.user_id = session[:id]
if @post.save
@tags.title.split('','').each do |tag|
present_tag = Tag.find_by_title(tag.strip)
present_tag =
2005 Sep 11
1
Patches awaiting decision
...ongs_to relationship fails to save relationship key if records
saved in wrong order
#1835 Dump migration info
#1837 PostgreSQL: unescape_bytea misses rare case
#1848 Automatic adapter collection for ActiveRecord
#1850 Fix :default in migrations for PG 7.x
#1860 Precise time calculations
#1887 Make collection_singular_ids= gracefully handle nil argument
#1888 Use Element.Class.* instead of Element.*ClassName
#1891 FormHelper documentation is confusing
#1893 Prototype: Field.activate: Select only when possible
#1899 link_to_remote should have href to support non-javascript browsers
and spiders
#1920 ActiveSupport l...