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.
Or just check to see within the divs on the view page check to see if there
are no images?



On Tue, Jul 22, 2014 at 10:17 AM, Straley, Brandon Richard <
straleyb@onid.oregonstate.edu> wrote:

> Would you  recommend that I do a new context for deleting? Add a photo
> then delete it?
>
>
> On Tue, Jul 22, 2014 at 10:16 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")
>>
>> This seems dangerous without some context - if we ever have images in our
>> layout this test will fail.
>>
>> —
>> Reply to this email directly or view it on GitHub
>> <https://github.com/osulp/OSU-Art-Walk/pull/46/files#r15241497>.
>>
>
>