#24 ✓resolved
davesag (at gmail)

App deploys to Heroku but crashes when a logged in user tries to edit data

Reported by davesag (at gmail) | October 1st, 2010 @ 09:37 AM | in v1.0

see the full details in this gist

Heroku crashes consistently with an "Ouchie Guy" whenever a logged-in user of my app creates or edits any data.

Details

See the app Frank Demo

I can log into my app as a root user (with 'root' and 'password' to keep it simple) but from that point on any attempt to
edit my profile create a new user edit an existing user delete a user create a role edit a role * delete a role

all fail with an "ouchie guy" screen.

SOMETIMES (and I have only seen this happen once so far) even just displaying the list screens for roles or users will crash with an "ouchie guy"

First note: This all works perfectly on my local machine.
Second note: I am using Bundler to manage dependencies and so, as far as I can tell, both systems are using the same gems.

Detailed Behaviour:

As a logged out guest of the site one can navigate around, register as a new user, use the password reminder functions etc and that all works perfectly. You can switch between languages etc all fine.

Log in as root. 'root' and 'password'

As a logged in user you can navigate about fine and all works as expected. Switching languages also works fine.

Now click on 'List Roles' (or navigate to http://frank-demo.heroku.com/roles as a logged in root user)

You will see some roles

Click "Add Role" (or just go straight to http://frank-demo.heroku.com/role as a logged in root user)

You will get a simple name change form.

Set the role name to something unique and click "Create Role"

!ouchie guy¡

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Frank is intended to be a very simple but feature complete web-app built on top of Sinatra that provides simple user login, password reminder, and user email verification with support for simple roles. It is intended to be used by other developers as both a well documented example of Sinatra in use, and a starting point for others wishing to implement simple web apps very quickly.

Shared Ticket Bins

People watching this ticket