Hi,
Thanks for creating Middleman! It’s been excellent for helping me with a (mostly) static site I’m building. Now my client wants to add a contact form. I’ve written a Sinatra app to handle this, but I’m apparently not hooking it up properly.
Here’s my directory/file structure under the source directory:
index.haml
contact.haml
// other haml files
app.rb
config.ru
stylesheets/
javascripts/
// etc…
The app.rb has a route for ‘/contact’ to handle POST data, but submitting on the server just causes a 404 Not Found error.
Is config.ru supposed to be in another directory, or should these routes instead be added to the config.rb for middleman itself?
Thanks in advance for any tips whatsoever on this!
Chip