<dviola>
while keepign the auth code in that existing file
<dviola>
I'm having some trouble doing that, but maybe it's my lack of experience with roda
ur5us has quit [Ping timeout: 245 seconds]
Rounin has quit [Ping timeout: 246 seconds]
jetchisel has joined #ruby
<adam12>
dviola: Not sure I understand.
<adam12>
dviola: Definitely post to the roda group if you're stuck. Someone (probably Jeremy) will respond.
<dviola>
adam12: I would like to have a directory with sub-directories, eg: routes/api/{external,internal}/v1/foo.rb where foo.rb is some endpoint, that endpoint will use some specific authentication method, for example, what I have in external.rb
<dviola>
I just don't want to duplicate that authentication code on every file/endpoint
<dviola>
adam12: ok, I will try that, thanks
<dviola>
maybe I'm making things more complicated than they should be
<adam12>
dviola: You could probably keep using hash_routes further.
<dviola>
when I get stuck that almost always is the case
<adam12>
Ie. external.rb could be authentication, then r.hash_routes :api, "external", "v1" or something. Then inside v1, you can have your routes.
<adam12>
(I don't use hash_routes so I don't know)
howdoi has quit [Quit: Connection closed for inactivity]
vit has joined #ruby
hololeap has joined #ruby
Rounin has joined #ruby
hololeap has quit [Remote host closed the connection]
shokohsc8 has quit [Read error: Connection reset by peer]
hololeap has joined #ruby
shokohsc8 has joined #ruby
CrazyEddy has joined #ruby
goldfish has joined #ruby
goldfish has quit [Ping timeout: 260 seconds]
SuperLag has quit [Ping timeout: 260 seconds]
SuperLag has joined #ruby
<adam12>
dviola: ah nice.
<adam12>
dviola: I had a feeling it only took two args, but i didn't check. The syntax is similar to multi_route (you use "/foo/bar" as an argument).
<dviola>
adam12: np
<dviola>
"The important thing to realize is that the default argument for r.hash_routes is the already matched path. You can make things easier by making the namespace for your hash routes use the same path."
<adam12>
Jeremy is a super OSS maintainer.
reset has joined #ruby
<dviola>
yeah, one of a kind
A_Dragon is now known as Awoobis
<dviola>
adam12: thanks for all your help so far
<adam12>
dviola: yw :)
reset has quit [Ping timeout: 260 seconds]
reset has joined #ruby
donofrio has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Ping timeout: 258 seconds]
gr33n7007h has joined #ruby
markong has joined #ruby
donofrio has joined #ruby
markong has quit [Ping timeout: 245 seconds]
shokohsc8 has quit [Ping timeout: 264 seconds]
shokohsc8 has joined #ruby
crankharder has joined #ruby
Inline has joined #ruby
Inline has quit [Quit: Leaving]
Inline has joined #ruby
markong has joined #ruby
shuvarek has quit [Ping timeout: 252 seconds]
crankharder has quit [Ping timeout: 260 seconds]
shuvarek has joined #ruby
crankharder has joined #ruby
gr33n7007h has quit [Ping timeout: 260 seconds]
<nakilon>
is there any gem to fix english grammar? not just spell checking but fixing the sentences
Bi[m] has quit [Quit: You have been kicked for being idle]
Inline has quit [Quit: Leaving]
gr33n7007h has joined #ruby
shuvarek has quit [Ping timeout: 260 seconds]
mahlon has quit [Read error: Connection reset by peer]
mahlon has joined #ruby
vito has quit [Ping timeout: 244 seconds]
JSharp has quit [Ping timeout: 244 seconds]
Nowaker has quit [Quit: No Ping reply in 180 seconds.]