search for: irb_id

Displaying 2 results from an estimated 2 matches for "irb_id".

Did you mean: ir_id
2010 Jan 08
1
problem using build with has_many :through relationship
...has_many :reviews has_many :irbs, :through => :reviews end -irb model - class Irb < ActiveRecord::Base # Relationships has_many :reviews has_many :projects, :through => :reviews end - review model - class Review < ActiveRecord::Base belongs_to :irb # foreign key - irb_id belongs_to :project # foreign key - project_id end - reviews_controller - class ReviewsController < ApplicationController def create @review = Project.reviews.build( :irb_id => params[:id] ) if @review.save flash[:notice] = "IRB added." redirect_to new_pro...
2010 Feb 24
4
"Sequence does not exist" for joined model
...o models with a many to many relationship and additional join model. This model has no PK id. When I try to do a create() to this model, BLAM! I get this... Processing ReviewsController#create_association (for 10.242.2.10 at 2010-02-24 15:29:08) [GET] Parameters: {"review"=>{"irb_id"=>["35540"]}, "action"=>"create_association", "id"=>"1", "controller"=>"reviews"} ActiveRecord::StatementInvalid (OCIError: ORA-02289: sequence does not exist: SELECT reviews_seq.NEXTVAL id FROM dual): C:/Ruby...