Commit 60ada0c5b564142a431a06d50d41a4530c6f3881
1 parent
200093ae
Exists in
master
and in
1 other branch
Saving optional signup info in db
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/questions_controller.rb
| ... | ... | @@ -79,7 +79,7 @@ class QuestionsController < InheritedResources::Base |
| 79 | 79 | def create |
| 80 | 80 | logger.info "all params are #{params.inspect}" |
| 81 | 81 | logger.info "vi is #{params['question']['visitor_identifier']} and local are #{params['question']['local_identifier']}." |
| 82 | - 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?})) | |
| 82 | + if @question = current_user.create_question(params['question']['visitor_identifier'], :name => params['question']['name'], :local_identifier => params['question']['local_identifier'], :information => params['question']['information'], :ideas => (params['question']['ideas'].lines.to_a.delete_if {|i| i.blank?})) | |
| 83 | 83 | respond_to do |format| |
| 84 | 84 | format.xml { render :xml => @question.to_xml} |
| 85 | 85 | end | ... | ... |