Curated list of episodes, bundled to help you on your learning path!
Videos of tech, infrastructure, hardware and software which non-instructional by nature.
Articles around software and tutorials.
Show your love and support while looking fancy.
Got a question or want to chat about a topic? Let's talk!
I like it, routing via :modules is very elegant. It works for me in a normal rails application, but i can't get it work inside of a rails engine.
config/routes.rb from the engine:
resources :users do
resources :authorities, module: :users
module Wobauth class Users::AuthoritiesController < AuthoritiesController
class AuthoritiesController < ApplicationController
I get the following error:
uninitialized constant AuthorityExtracted source (around line #269): names.inject(Object) do |constant, name| if constant == Object constant.const_get(name) else candidate = constant.const_get(name) next candidate if constant.const_defined?(name, false)
It works without specifying :modules, but this means i must place the logic in the main authorities_controller ... so its less elegant. Any idea?