Commit c103a4fab3fc0289200e1ea10732ca97afd49ab8
1 parent
0392ee54
Exists in
master
and in
1 other branch
improved logging
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
app/controllers/questions_controller.rb
... | ... | @@ -19,7 +19,8 @@ class QuestionsController < InheritedResources::Base |
19 | 19 | |
20 | 20 | def create |
21 | 21 | authenticate |
22 | - logger.info "vi is #{params['question']['visitor_identifier']} and local are #{params['question']['local_identifier']}. all params are #{params.inspect}" | |
22 | + logger.info "all params are #{params.inspect}" | |
23 | + logger.info "vi is #{params['question']['visitor_identifier']} and local are #{params['question']['local_identifier']}." | |
23 | 24 | if @question = current_user.create_question(params['question']['visitor_identifier'], :name => params['question']['name'], :local_identifier => params['question']['local_identifier'], :ideas => (params['question']['ideas'].lines.to_a.delete_if {|i| i.blank?})) |
24 | 25 | respond_to do |format| |
25 | 26 | format.xml { render :xml => @question.to_xml} | ... | ... |