search for: reviews_controller

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

2010 Feb 24
4
"Sequence does not exist" for joined model
...apter-1.2.3/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:1283:in `select'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-oracle_enhanced-adapter-1.2.3/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:606:in `next_sequence_value'' app/controllers/reviews_controller.rb:27:in `create_association'' Rendering C:/RoRApps/ProjectDB/public/500.html (500 Internal Server Error) I believe it''s because of the lack of an ID for the joined model. Thank you for any advice here. JohnM -- Posted via http://www.ruby-forum.com/. -- You received this me...
2005 Mar 07
2
Problem with Rails 0.10.1
...how'', :params => { ''id'' => review.id }) %> In Rails 0.10.0 this worked just fine. After I upgraded to 0.10.1 I get this error: ActiveRecord::RecordNotFound in Reviews#show Couldn''t find Review without an ID app/controllers/reviews_controller.rb:14:in `show'' (erb):28:in `evaluate_locals'' (erb):26:in `each'' (erb):26:in `evaluate_locals'' script/server:48 Is this a Rails bug? Or am I doing something wrong that just happened to work before? Curt
2010 Jan 08
1
problem using build with has_many :through relationship
...d -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_project_path else flash[:error] = "Unable to add IRB."...
2005 Jun 13
3
validations not working with collection population droplists
...-1.8.1/lib/action_controller/benchmarking.rb:23:in `measure'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:23:in `render'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:447:in `render_action'' app/controllers/reviews_controller.rb:91:in `create_curriculum'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:708:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:708:in `perform_action_without_filters'' /usr/lib/ruby/gems/1.8/gems/actionpack-...