Displaying 7 results from an estimated 7 matches for "zisopoulos".
Did you mean:
rizopoulos
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 Dec 18
1
Bad merge of r5686 from trunk to 1.2-pre-release?
I do not closely follow the core source commits, but please bare with
me. I will keep it short.
Recently, changeset#5685 [1] caught my attention as I''ve been waiting
for some date_helper love for a VERY long time.
What bothered me is that when this changeset was merged into the 1.2-
pre-release branch (at changeset#5686 [2]) a change to caching.rb
crept in [3], which was not in
2007 Feb 04
2
Beginner Q: Keeping the Ruby on Rails platform up to date.
Hello, I recently installed the ruby on rails framework from this
tutorial:
http://www.hivelogic.com/narrative/articles/ruby_rails_lighttpd_mysql_tiger
So, I installed:
Ruby on Rails 1.1
Ruby 1.8.4
LightTPD 1.4.13
FastCGI 2.4.0
RubyGems 0.9.0
Readline 5.1
PCRE 6.6
FastCGI and MySQL bindings
I figured out how to keep my ruby on rails up to date by using the
command "gem update rails
2007 Jul 24
9
will_paginate plugin doesn't work with Association Extensions?
I have:
class Post < ActiveRecord::Base
has_many :comments do
def published
find( :all,
:conditions => {:published => true} )
end
end
end
When in my controller I do
Post.find(:first).comments.published.paginate :page => params[:page]
I get an error
undefined method `paginate'' for []:Array
Is will_paginate supposed to
2007 Feb 27
11
Mongrel performing only half as fast as Apache?
I''m trying to do some initial benchmarking of our setup, mainly just to
establish baselines. I''m essentially using the process Zed outlines in a
previous message:
http://rubyforge.org/pipermail/mongrel-users/2006-May/000200.html
What I''m running into is that Mongrel appears only half as fast as Apache
when serving a small static HTML file. If I then add in Apache with
2007 Jun 12
1
alias_method_chain and Class methods (a Ruby question)
Hello list,
I am trying to override the post_form method of Net::HTTP so that it
does something before actually doing the post. I tried the following
in environments/development.rb
module Net
class HTTP
alias_method_chain :post_form, :intercept
def post_form_with_intercept(url, params)
# Do something before post
logger.info(''About to post at
2006 Apr 05
3
CRUD pattern for has_many relationships (forms containing collections)?
Hello folks!
Beare with me for a second, while I explain my problem.
Assuming we have the trivial model of
class Author
has_many :books
end
class Book
end
How do people go about creating the authors/edit and authors/new
views if you want to be able to add and remove arbitrary amount of
Books at Author creation and edit time? What I mean by this is that I
go to