Giter VIP home page Giter VIP logo

Comments (5)

victhevenot avatar victhevenot commented on July 20, 2024

Hey @deniznida - I'm not sure what version of the lab you're looking at, but we removed the dalmatian reference because students haven't learned views in sinatra yet.

Also, in Sinatra you don't use the .html file extension, you can check out the docs on Sinatra templating languages here

Im going to go ahead and close this!

from sinatra-mvc-file-structure.

deniznida avatar deniznida commented on July 20, 2024

@vicfriedman you are right about the .html, the only issue with that is we show our students always .html.erb where we also should tell them that the .html is not necessary in Sinatra.

when I opened this issue the dalmatian reference was still there...

Thanks for looking into this...

from sinatra-mvc-file-structure.

victhevenot avatar victhevenot commented on July 20, 2024

hey @deniznida

the readme specially addresses the .html issue:

views directory

This directory holds the code that will be displayed in the browser. In a Sinatra app we use .erb files instead of .html files because .erb files allow us to include regular, old HTML tags AND special erb tags which contain Ruby code. We can name them anything we like, but by convention, our file names will match up with the action that renders them. For example, a GET request to / typically renders a file called index.erb.

can you take at the version of the lab your or your students are using about dalmations? I want to make sure all is resolved!

from sinatra-mvc-file-structure.

deniznida avatar deniznida commented on July 20, 2024

@vicfriedman my classes repo looks good now. We deployed this lab definitely after you fixed the specs. I don't know what happened but its all good now. Thanks

from sinatra-mvc-file-structure.

victhevenot avatar victhevenot commented on July 20, 2024

awesome! thanks @deniznida

from sinatra-mvc-file-structure.

Related Issues (15)

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.