You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require 'nyny'
class Ping < NYNY::App
get '/' do #this will be accessbile at '/ping'
'pong'
end
end
class App < NYNY::App
get '/' do
'Hello'
end
# You can pass a Rack app to the namespace
namespace '/ping', Ping
# Or you can pass a block, which will create the app for you
namespace '/nested' do
get '/' do # this will be accessible at '/nested'
'Hello from namespace!'
end
end
end
The text was updated successfully, but these errors were encountered:
tablecell
changed the title
No template engine registered for index.slim
template not updated after edit tpl content
Sep 11, 2021
tablecell
changed the title
template not updated after edit tpl content
html not updated after edit tpl content
Sep 11, 2021
tablecell
changed the title
html not updated after edit tpl content
ArgumentError at /nested wrong number of arguments (2 for 1) when use namspace route for class app
Sep 15, 2021
visit http://localhost:9292/nested/ is ok
visit http://localhost:9292/ping throw ArgumentError
it seems that namespace only works fine with block but not for class
The text was updated successfully, but these errors were encountered: