kiyo_hiko  id:kiyo_hiko  



109,364    

-    

-    









# |ω  (76)  

10(69)  

2(51)  

2011  (171)  

2012  (172)  

2013  (83)  

2014  (86)  

2ch  (328)  

3(52)  

3.11  (96)  

3d  (105)  

404  (118)  

5(67)  

7(69)  

8(140)  

98(323)  

AI(124)  

aa(179)  

accident  (101)  

account  (51)  

active  (105)  

activerecord  (94)  

addon  (120)  

algorithm  (98)  

amazon  (177)  

anal  (50)  

android  (137)  

angry  (57)  

animal  (102)  

anime  (286)  

ansible  (57)  

apache  (68)  

api  (183)  

apple  (143)  

art  (83)  

atode  (209)  

baka  (72)  

battery  (58)  

bgm  (91)  

biology  (48)  

blog  (65)  

boj  (46)  

bone  (73)  

book  (1199)  

bridge  (50)  

business  (141)  

c(109)  

car  (238)  

centos  (81)  

chrome  (103)  

cinema  (138)  

civil_engineering  (61)  

cl(279)  

cloud  (53)  

cmd  (84)  

cn(127)  

code  (111)  

color  (85)  

comic  (464)  

comike  (50)  

communication  (408)  

company  (63)  

config  (47)  

cosplay  (224)  

cpp  (199)  

cpu  (58)  

credit  (53)  

crime  (253)  

cs(105)  

css  (188)  

culture  (109)  

curry  (56)  

db(102)  

death  (65)  

design  (195)  

desktop  (54)  

dev  (297)  

devel  (52)  

diet  (141)  

diplomacy  (201)  

disaster  (69)  

diy  (223)  

doc  (222)  

docker  (91)  

dotnet  (50)  

doujin  (135)  

dqn  (223)  

earthquake  (85)  

eclipse  (129)  

economy  (111)  

editor  (92)  

education  (282)  

emacs  (113)  

en(151)  

energy  (64)  

era  (62)  

ero  (86)  

eroge  (55)  

event  (226)  

excel  (386)  

factory  (58)  

family  (92)  

fashion  (164)  

figure  (573)  

file  (62)  

fire  (45)  

fish  (68)  

font  (77)  

food  (337)  

form  (70)  

func  (46)  

furniture  (46)  

fx(51)  

game  (720)  

gdgd  (65)  

gem  (53)  

gif  (77)  

git  (220)  

github  (81)  

google  (239)  

gov  (50)  

gui  (117)  

guideline  (73)  

haskell  (98)  

hatena  (342)  

health  (346)  

history  (405)  

horror  (185)  

house  (165)  

html  (127)  

human  (68)  

ide  (72)  

idea  (161)  

illust  (660)  

insect  (80)  

interesting  (131)  

internet  (110)  

iphone  (79)  

japan  (208)  

java  (1087)  

jmsdf  (47)  

job  (1468)  

joke  (144)  

jp(762)  

jquery  (105)  

js(427)  

json  (45)  

keyboard  (148)  

kindle  (127)  

korewahidoi  (151)  

korewasugoi  (58)  

labor  (46)  

lambda  (44)  

lang  (62)  

lanove  (206)  

law  (184)  

letsnote  (144)  

lib  (95)  

life  (837)  

linux  (139)  

lisp  (194)  

logic  (84)  

love  (76)  

mac  (70)  

manual  (46)  

map  (101)  

masuda  (240)  

material  (139)  

math  (336)  

matome  (540)  

md(46)  

medical  (214)  

medicine  (64)  

mem  (47)  

memo  (185)  

mental  (368)  

migration  (56)  

miku  (107)  

mobile  (180)  

model  (107)  

moe  (345)  

monad  (58)  

money  (464)  

monitor  (232)  

motto  (85)  

mouse  (63)  

ms(110)  

music  (179)  

mysql  (91)  

name  (108)  

neta  (2322)  

netwatch  (54)  

niconico  (157)  

npp  (79)  

nuclear  (79)  

office  (72)  

official  (52)  

oil  (73)  

oop  (191)  

padrino  (92)  

pattern  (58)  

pc(1445)  

pdf  (264)  

perf  (65)  

perl  (546)  

person  (137)  

phone  (58)  

photo  (266)  

php  (167)  

pix  (154)  

plugin  (58)  

politics  (203)  

power  (131)  

professional  (213)  

programmer  (64)  

programming  (68)  

prolog  (101)  

ps(114)  

python  (113)  

rails  (242)  

recipe  (48)  

record  (103)  

ref  (48)  

review  (117)  

risk  (70)  

robot  (87)  

ruby  (496)  

ruins  (49)  

sample  (180)  

scheme  (79)  

sea  (92)  

search  (110)  

security  (466)  

setup  (494)  

sex  (79)  

sharp  (56)  

shinkansen  (46)  

sinatra  (81)  

skull  (54)  

sleep  (115)  

slideshare  (79)  

song  (102)  

sony  (47)  

sql  (53)  

ssd  (50)  

statistics  (66)  

stock  (1221)  

storage  (56)  

stress  (45)  

string  (70)  

study  (217)  

style  (250)  

swing  (122)  

syntax  (79)  

t(164)  

tablet  (183)  

tax  (146)  

term  (228)  

test  (182)  

thinking  (122)  

thinkpad  (108)  

tips  (1307)  

tokyo  (114)  

tool  (542)  

touhou  (400)  

train  (370)  

travel  (99)  

trend  (127)  

trivia  (146)  

trouble  (332)  

tutorial  (315)  

twitter  (304)  

typing  (65)  

ui(56)  

unko  (93)  

us(181)  

usability  (67)  

usb  (191)  

uwsc  (66)  

vagrant  (50)  

vba  (217)  

vim  (254)  

vps  (53)  

wallpaper  (300)  

warota  (557)  

web  (54)  

webservice  (54)  

wiki  (67)  

win  (705)  

wishlist  (292)  

word  (110)  

ww2  (45)  

xml  (73)  

yama  (60)  

youtube  (72)  

 (83)  

 (84)  

 (71)  

 (318)  

 (79)  

 (71)  

 (54)  

 (179)  

 (235)  

 (197)  

 (320)  

 (80)  

 (164)  

 (101)  

 (76)  

 (151)  

 (71)  

 (52)  

 (159)  

 (87)  

 (95)  

 (234)  

 (118)  

 (65)  

 (85)  

 (52)  

 (233)  

 (131)  

便  (47)  

 (53)  

 (75)  

 (79)  

 (228)  

 (45)  

 (131)  

 (186)  

 (510)  

 (247)  

 (93)  

 (132)  

 (187)  

 (66)  

 (96)  

 (589)  

 (69)  

 (58)  

 (48)  

 (324)  

 (135)  

 (78)  

 (59)  

 (77)  

 (390)  

 (87)  

 (125)  

 (233)  

 (92)  

 (73)  

 (85)  

 (86)  

 (52)  

 (74)  

 (198)  

 (48)  

 (79)  

 (118)  

 (48)  

 (45)  

 (65)  

 (109)  

 (58)  

 (578)  

 (172)  

 (517)  

 (167)  

 (80)  

 (102)  

 (580)  

 (810)  

 (87)  

 (133)  

 (69)  

 (409)  

 (57)  

BGM  (69)  

 (190)  

便  (109)  

 (115)  

 (68)  

 (58)  

 (112)  

 (48)  

 (98)  

 (97)  

 (80)  

 (71)  

 (262)  

 (94)  

 (112)  

 (102)  

 (127)  

 (210)  

 (60)  

 (46)  

 (120)  

 (59)  

 (70)  

 (90)  

 (80)  

 (110)  

 (45)  

 (367)  

 (110)  

 (55)  

 (262)  

 (137)  

 (90)  

 (112)  

 (50)  

 (56)  

 (182)  

 (162)  

 (104)  

 (209)  

 (47)  

 (48)  

 (72)  

 (1104)  

 (61)  

 (55)  

 (50)  

 (71)  

 (69)  

 (62)  

 (194)  

 (266)  

 (447)  

 (189)  

 (296)  

 (96)  

 (60)  

 (63)  

 (58)  

 (98)  

 (293)  

 (71)  

 (70)  

 (83)  

 (74)  

 (219)  

 (97)  

 (58)  

 (56)  

 (64)  

 (53)  

 (58)  

 (131)  

 (91)  

 (68)  

 (727)  

 (65)  

 (299)  

 (400)  

 (1195)  

 (122)  

 (46)  

 (59)  

 (88)  

 (211)  

 (159)  

 (67)  

 (370)  

 (48)  

 (167)  

 (48)  

 (156)  

 (296)  

 (54)  

 (54)  

 (103)  

 (55)  

 (156)  

 (239)  

 (256)  

 (238)  

 (53)  

 (151)  

 (48)  

 (266)  

 (64)  

 (48)  

 (193)  

 (139)  

調  (103)  

 (214)  

 (56)  

 (282)  

 (54)  

 (64)  

 (173)  

 (48)  

 (80)  

 (183)  

 (84)  

 (56)  

 (60)  

 (133)  

 (93)  

 (555)  

 (97)  

鹿  (99)  

 (59)  

 (48)  

 (363)  

neta  (2322)  

job  (1468)  

pc(1445)  

tips  (1307)  

stock  (1221)  

book  (1199)  

 (1195)  

 (1104)  

java  (1087)  

life  (837)  


 


 (10)



after  

controller  

filter  

multiple  

oo

padrino  

pattern  

routing  

rsrc  

sinatra  


 




beforekiyo_hiko (2)  






in Sinatra how do you make a "before" filter that matches all routes except some  



2 users  

stackoverflow.com  


 


I have a Ruby Sinatra app and I have some code which I need to execute on all routes except for a few exceptions. How do I do this? If I wanted to execute the code on selected routes (whitelist style) I'd do this: ['/join', "/join/*", "/payment/*"].each do |path| before path do #some code end end How do I do itthe other way round though (blacklist style)? I want to match all routes except '/join'
 in Sinatra how do you make a "before" filter that matches all routes except some


kiyo_hiko
kiyo_hiko  2016/03/14  
 

sinatra

padrino

controller

routing

before

multiple

filter
 



 














Before After - Strategic Choice



1 user  

d.hatena.ne.jp/asakichy  


 






kiyo_hiko
kiyo_hiko  2013/11/21  
 Template Method // CLOSbefore/after(CLOS)  

pattern

oo

before

after

rsrc
 



 














1











202472

   



20242-20244

   



202471

   


 

Twitter



@HatenaBookmark


@hatebu

 









   




 



j

k

l

e

o
 

















 









 

















 









 









 







Pro



 




 






App Storeからダウンロード
Google Playで手に入れよう


Copyright © 2005-2024 Hatena. All Rights Reserved.
 



x