Skip to content

Commit

Permalink
update dispatch to accept survey data
Browse files Browse the repository at this point in the history
  • Loading branch information
Kieren Diment committed Feb 21, 2010
1 parent 1b5cbeb commit 07fa0a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Survey-Perl/lib/Survey/Perl/Controller/Survey.pm
Expand Up @@ -23,5 +23,10 @@ sub get_root :Chained("survey_base") :PathPart("") :Args(0) {
template => 'survey/index.tt');
}

sub finish_survey :Chained("survey_base") :PathPart("finish") :Args(0) {
my ($self, $c) = @_;
my $user = $c->session->{human};
$c->res->body($c->sessionid);
}

1;
2 changes: 1 addition & 1 deletion Survey-Perl/root/survey/index.tt
Expand Up @@ -89,7 +89,7 @@ $(document).ready(function(){

<div class="formContainer">

<form name="" action = "finish" method="POST">
<form name="" action = "[% c.uri_for('finish') %]" method="POST">
<ul class="form">
[% FOREACH s IN sections %]

Expand Down

0 comments on commit 07fa0a3

Please sign in to comment.