search for: survey_controller

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

2007 Sep 22
1
Rails newbie: passing a value to hidden form field, then getting it
...onView::TemplateError (undefined method `merge'' for "1":String)". 1 is the id of the survey, so I am close. I tried numerous variations of passing values via form_for to a hidden field. Question 1: How to pass the value so I can get at it when the user hits submit In the survey_controller.rb I have def save_comment @comment = Comment.new(params[:comment]) logger << "COMMENT #{@comment.comment}\n" # @survey = Survey.find(?????????) # somehow I need to get that survey id so I can do the next line @survey.add_comment(@comment) end Question 2: what...
2005 Mar 10
0
Need Help with Flaky FastCGI on Windows
...`count'' /app/helpers/pagination_helper.rb:222:in `count_collection_for_pagination'' /app/helpers/pagination_helper.rb:238:in `paginator_and_collection_for'' /app/helpers/pagination_helper.rb:179:in `paginate'' C:/clg003/survey/app/controllers/survey_controller.rb:49:in `list'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.5.1/lib/action_controller/ base.rb:678:in `send'' C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.5.1/lib/action_controller/ base.rb:678:in `perform_action_without_filters'' C:/ruby/lib/ruby/gems...