locomotivecms/engine — Issue #256: Redirect after API form post redirect to nil error
Author: pferdefleisch
Created: 2011-12-19 14:06:27+00:00
State: open

Hi,
Error from my heroku logs

Started POST "/admin/api/contacts/contents" for 123.456.789.666 at 2011-12-19 13:45:08 +0000
2011-12-19T13:45:08+00:00 app[web.1]: [LocomotiveCMS] [fetch site] host = my_app.herokuapp.com / my_app.herokuapp.com
2011-12-19T13:45:08+00:00 app[web.1]: ActionController::ActionControllerError (Cannot redirect to nil!):

This is happening after submitting a contact form that I built with the api functionality.
The record **is** created but redirect fails hard. No email is being sent, but that is probably because I haven't set up the sendgrid addon yet.

locomotive_jammit-s3 (0.5.4.4)
locomotive_liquid (2.2.2)
locomotive_mongoid_acts_as_tree (0.1.5.7)
rails (3.0.10)

Thanks!