MainStMission/food-pantry-manager — pull request #102 by heatlill (2013-02-15 03:22:09+00:00)
Title: Issue 46 auth setup

So this fix isn't done. I just need some help determining if I am on the right track. I've done several iterations on my own and have come to the conclusion that I'm just not getting anywhere working in a vacuum.

Anyway, the layout is that I've added an Access Level entity to the database for lookup values. Currently it is 1, 2, 3 for Volunteer, Super-User, and Admin respectively. I've also added a module with convenience methods and included it in the ApplicaitonController. And plan on each controller having a "has_access" method called on a before filter. The implementation of the has_access will use the correct convenience method(s) for the desired authorization.

The user controller logic seems to work well, and the tests pass, though, I am completely open to suggestions.

I'm currently trying to get the neighbor controller tests working but I keep getting a:
```
Then I should see Anne # features/step_definitions/neighbor_steps.rb:46
Ambiguous match, found 2 elements matching link "Edit" (Capybara::Ambiguous)
./features/step_definitions/neighbor_steps.rb:50:in `/^I should see Anne$/'
features/manage_neighbors.feature:24:in `Then I should see Anne'
```
I know that the matcher is getting confused by the number of "Edit" links in the page I'm just not sure how to fix it.

Thanks in advance