We need take the big question too: Ruby has a future? Or its Go and JS (vue, react, etc) to eat all the backend and frontend pie?
There's a lot of old gems without updates.
@waghanza Well... yeah, RPG and Modula2 has a future, out of the question. I mean as a main language for web development, with an strong community and an updated gemset covering all the new technologies. That's my wish, but I'm not sure.
I'm watching how the new thins are created for nodejs and go, even they are replicated in python, but I don't see the same response in ruby.
ruby
fit more for backend
and vue
/react
for frontend.
absolute_url(:posts, :index)
resolves to a more specific route like /posts/:year/:month
and errors out with Mustermann::ExpandError: cannot expand with keys [], possible expansions: [:year, :month]
. Apologies if there is some documentation/migration guide out there that I missed that addresses this. Thank you for your time.
:index
and the old router it seems would disambiguate based on request method and params?
Demo::App.controllers :posts do
get :index do; end # /posts
get :index, with: :id do; end # /posts/:id
get :index, with: [:year, :month] do; end # /posts/:year/:month
post :index do; end # /posts
patch :index, with :id do; end # /posts/:id
delete :index, with: :id do; end # /posts/:id
end
absolute_url(:posts, :index)
to resolve to /posts
I am new to ruby (like couple weeks new) and trying to implement omniauth-okta but getting the following error "OmniAuth::Strategies::OAuth2::CallbackError at /auth/okta/callback
csrf_detected | CSRF detected" I have know clue as how to proceed
set :public_folder, PADRINO_ROOT + '/public'
in the app.rb file in each sub-app - then the sub-app looks at the same 'public' folder as the main app, and I don't have to specify a hard path to the :layout each time.