faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
<FromGitter> <damianham> you can use https://github.com/damianham/amber_render_module and then put the controller,model,views for a feature in a single folder. In the controller use render_module("viewname.slang") instead of render("viewname.slang")
alexherbo2 has joined #amber
<FromGitter> <backward-crazy-mage-puppy-36_gitlab> @damianham thanks. This is exactly what I was looking for. I have everything setup as per the readme. I am modularising projects so I have src/modules/project directory with project MVsC in it. I have required the shard and modules directory in application.cr, and am using render_module("index.slang") etc as needed. I have fixed the specs. I am running into routing issues. Getting error
<FromGitter> ... 500. My routes file looks like ⏎ routes :web do ⏎ ⏎ ```# get "/", HomeController, :index ⏎ resources "projects", ProjectController``` ⏎ ... [https://gitter.im/amberframework/amber?at=609ba95a039dd570e79fc12b]
<FromGitter> <damianham> error 500 is an internal server error, if it was a routing issue you would get a 404. Usually the 500 error tells you exactly what the issue is in the server log but the text of the error also goes back to your client so look n the browser console for clues.
alexherbo2 has quit [Read error: Connection reset by peer]
alexherbo20 has joined #amber
alexherbo20 has quit [Ping timeout: 252 seconds]
alexherbo2 has joined #amber
alexherbo2 has quit [Ping timeout: 265 seconds]
alexherbo2 has joined #amber
alexherbo2 has quit [Ping timeout: 240 seconds]