greggannicott/Nuggets — Issue #19: When adding tags on a fresh database, it's possible for a tag association to go missing
Author: greggannicott
Created: 2012-01-11 15:29:25+00:00
State: open

# Recreating the Error

* Reset the database:

rake db:reset

* Go to /nuggets/new/
* Fill in all fields however you want, with the exception of tags. You should fill this as "tag 1,, tag 2" (without the quotes)

# Seeing the error

## On the Web Site

Now go to edit that Nugget. In theory you should see two tags:

* tag 1
* tag 2

However, you just see 'tag 1'.

## What does the database say?

When you look at the database, the two tags do exist in the 'tags' table. However, the association does not exist in the 'nuggets_tags' table.

# Any ideas?

It's possible this will be resolved when you figure out how to prevent empty tags from being created (Issue 18), so it might be worth focusing on that first.