Commit 0392ee54b05bcd3093dd3e85081d681a8ba4eb98
1 parent
5042ef84
Exists in
master
and in
1 other branch
delete_if
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/questions_controller.rb
@@ -20,7 +20,7 @@ class QuestionsController < InheritedResources::Base | @@ -20,7 +20,7 @@ class QuestionsController < InheritedResources::Base | ||
20 | def create | 20 | def create |
21 | authenticate | 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 "vi is #{params['question']['visitor_identifier']} and local are #{params['question']['local_identifier']}. all params are #{params.inspect}" |
23 | - 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?})) | 23 | + 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 | respond_to do |format| | 24 | respond_to do |format| |
25 | format.xml { render :xml => @question.to_xml} | 25 | format.xml { render :xml => @question.to_xml} |
26 | end | 26 | end |