Add donations to donation levels

A user can choose to donate at a specific donation level for a specific project. 
The donation amount, associated donation level, and donating user id are recorded in the database.
How do I deal with projects?

On Aug 20, 2014, at 2:46 PM, Gabe Berke-Williams <notifications@github.com> wrote:

> In app/views/projects/show.html.erb:
> 
> > @@ -21,6 +23,11 @@
> >      <div>
> >        <%= number_to_currency level.amount %>
> >      </div>
> > +    <%= form_for [@donation] do |form| %>
> > +      <%= form.hidden_field :amount, value: level.amount %>
> What if you do this?
> 
> # levels are top-level, donations are only 2nd-level
> resources :levels, only: [] do
>   resources :donations, .....
> end
> —
> Reply to this email directly or view it on GitHub.
>