Feature/multiple photo viewer

Added the ability to add multiple photos to an art piece. Extracted photo from art piece and created a new class. Added nested forms in the add and edit views for art piece. Made it so you can view all the pictures in the show page and one on the index page.
KK got ya. I'll give her another go lol.


On Tue, Jul 22, 2014 at 10:19 AM, Trey Terrell <notifications@github.com>
wrote:

> In spec/features/multi_photo_spec.rb:
>
> > +      end
> > +    end
> > +
> > +    context "when deleting the field for adding pictures", :js => true do
> > +      before do
> > +        click_link "Edit"
> > +        photos = all("*[id^=picture]")
> > +        photos.each do |photo_wrapper|
> > +          within photo_wrapper do
> > +            click_link "remove"
> > +          end
> > +        end
> > +        click_button "Update Art piece"
> > +      end
> > +      it "Should delete the field" do
> > +        expect(page).to_not have_selector("img")
>
>  Or just check to see within the divs on the view page check to see if
> there
> are no images?
>
> That one. I don't mean context in the rspec sense.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/osulp/OSU-Art-Walk/pull/46/files#r15241754>.
>