Genie.jl
Genie.jl copied to clipboard
MVC Tutorials Are broken
Same tutorial in two different locations.
-
This is completely broken: https://genieframework.com/docs/genie/tutorials/Developing-MVC-Web-Apps.html
-
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
Can you share your current code?
@essenciary Update docs for v6 / fix for v5.