search for: rate_professors

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

Did you mean: rate_professor
2012 May 08
1
One to many relationships
I was trying to make one to many relationships - between professors controller to rate_professors controller and used scaffold. it''s giving me this error- NoMethodError in RateProfessorsController#index undefined method `rate_professors'' for nil:NilClass app/controllers/rate_professors_controller.rb:7:in `index'' Request Parameters: {"professor_id"=>&quo...
2012 May 21
1
Active Admin help
...r I added in the index page ........but I don''t want to see that one.....I want to find the information(whatever I added by clicking submit button) on the website after reviewing by admin.......Can anyone please help me to fix this.......?It will be great...... here are my codes.. in rate_professors controller:(1:n relationship) def create @professor=Professor.find(params[:id]) @rate_professor =@professor.rate_professors.build(params[:rate_professor]) if @rate_professor.save redirect_to rate_professors_index_path(:id=> @professor.id) end end end def...