learn-co-curriculum / using-active-model-serializer Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
the specs for the form
the code along doesn't make it clear why the form is needed
This lab is not testing views, but I added views because the failures/spec were asking for. When you render this through rails s, it shows the form correctly and the form works. However, the following error prints:
"has_many :posts" in author_serializer.rb
worked without generating PostAuthorSerializer and explicitly give it the serializer.
Just like the Returning String Data,
DIY JSON Serializer Codealongand
Using to_json, and most likely
Receiving API Posts`, I sent an error that none of these turned green for me. Now, the labs have been updated to need the specs to pass.
The specs for these labs are all GENERIC, and exactly the same one. And they need intense revision to basic Rails code in order to make them pass each time. It's time consuming and long. Also, because I already finished these, I am having to go back and try to get Learn to recognize that I had already forked them (because they forgot I forked them), and basically force all these diverse labs to pass the same EXACT spec every time. These should have just been pull request-only, not spec-driven, since these are lessons. Not labs.
Commented out all specs in order to 'pass' and move on to next lab.
I had 2 issues while coding along this lesson:
Noted paragraph: "And now if we reload our first post show page and click through our Next button we can see that everything works exactly the same as before!"
Issue : This paragraph is particularly confusing for this readme given that the readme directory doesn't actually have a "views" folder. It is also the only mention of the html version of a show page.
The lesson expects local tests to be run before submitting, but there are not test specs in this lab.
The lesson is about coding API's not about views, but the specs are checking the views, and forms, which was not part of the code-along.
I commented out the it 'shows the title on the show page in a h1 tag' do
section and the whole describe 'form' do
section to pass the lesson.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.