AashnaNarang / SurveyLab

0 stars 0 forks source link

Mc question front end #27

Closed AndrewHall797 closed 2 years ago

AndrewHall797 commented 2 years ago

First rendition of the front end for the McQuestion, I tried to emulate the format from the main page

I have a submit button purely for debugging atm, it should be removed when the final page is added later

I also have just made it so that it always posts to a survey with an ID of 1 since I am having issue with the main page, this should of course be replaced later.

I also hardcoded the route, called BaseURL was causing a weird issue, some random text was posted along with the actual url, this should be replaced too.

Currently it can just to the create route.

Screen Shot of rails server creating the entry

image

Screen Shot of component in browser debugging

image

This was made by looking at tutorials and some stack overflow pages so I am unsure of the quality........

AndrewHall797 commented 2 years ago
AndrewHall797 commented 2 years ago

@JudyHamwi I thought it was all done in one return? Sorry just a bit confused by this.