Coder Social home page Coder Social logo

using-active-model-serializer's Issues

Error unrelated to lab and also not correct

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:

  1. form shows a new form that submits content and redirects and prints out params
    Failure/Error: fill_in 'title', with: "My post title"
    Capybara::ElementNotFound:
    Unable to find field "title"

Something is seriously wrong with this section's lesson submissions

Just like the Returning String Data, DIY JSON Serializer CodealongandUsing 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.

Test spec and rails last version in the Gemfile are to be fixed.

I had 2 issues while coding along this lesson:

  1. I couldnt bundle install with the version in the Gemfile that I got from forking the lesson.
    Rails v.5 is needed for this lesson.
  2. Test spec problem already mentioned in other issues:
    rendering only happened on the json side. There is no html rendering in the controller and no views for that. Test spec expect them though...
    To pass the tests and have the lesson working:
    Change rails gem in the Gemfile to 5 and comment the specs related to view expectations.

Suggest paragraph removal for confusion and non-relevance

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.

Specs don't go with this code-along

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.