Prolly merge my branch first ... it's solid except for these 4 tests and a lot of comment lines that need deleting from the controller when we're done.

/k

On Jun 10, 2013, at 4:12 PM, Pratik Khadloya wrote:

> In app/controllers/proposals_controller.rb:
> 
> > @@ -150,6 +158,54 @@ def find_hub
> >      @hub = Hub.find(params[:hub]) if params[:hub]
> >    end
> >  
> > +  def modify_create_params(params_hash)
> > +    if parent_proposal
> > +      params_hash[:proposal].delete :parent_id                 #needed to pass some tests
> > +      params_hash[:proposal].delete :votes_attributes          #exsited before, not sure if needed.
> > +      params_hash[:proposal][:parent] = @parent
> > +      params_hash[:proposal][:hub_id] = @parent.hub.id
> > +    else
> > +      #if params_hash[:proposal][:votes_attributes].first
> Oops missed the "but". I will fix them. Thanks, Pratik
> …
> —
> Reply to this email directly or view it on GitHub.
>