Genie.jl icon indicating copy to clipboard operation
Genie.jl copied to clipboard

MVC Tutorials Are broken

Open MontyTHall opened this issue 1 year ago • 2 comments

Same tutorial in two different locations.

  1. This is completely broken: https://genieframework.com/docs/genie/tutorials/Developing-MVC-Web-Apps.html

  2. This mostly works: https://genieframework.github.io/Genie.jl/dev/tutorials/4-1--Developing_MVC_Web_Apps.html

For 2) - in particular: https://genieframework.github.io/Genie.jl/dev/tutorials/4-1--Developing_MVC_Web_Apps.html#Setting-up-the-web-page. Just can't get MoviesController to work. "Movies doesn't exist in the WatchTonight" package. As soon as I try to open the web page - Genie goes down. I know Movies works because earlier in the tutorial I was able to create a movie.

module MoviesController

using Genie.Renderer.Html using SearchLight #using WatchTonight.Movies <- Movies doesn't exist #using Movies <- hail mary include("app/resources/movies/Movies.jl") <- another hail mary using .Movies

function index() #html(:movies, :index, movies=rand(Movie)) "Hello" end

end

MontyTHall avatar Mar 05 '23 06:03 MontyTHall

Can you share your current code?

essenciary avatar Mar 06 '23 08:03 essenciary

@essenciary Update docs for v6 / fix for v5.

essenciary avatar Sep 07 '23 14:09 essenciary