Advertisement · 728 × 90

Posts by rusty country

Dream blunt rotation right here

6 hours ago 1 0 0 0
comment from reddit r/rails:
You are abstracting over two different elements that mean two different things.

A link is navigation. A button is an action.

If the gated thing is “go to this URL when allowed, otherwise show paywall,” the clean Rails and Stimulus way is usually still to render a link, and let the gating behavior decide whether to allow navigation or intercept it with preventDefault().

You shouldn't be determining UI functionality based on the existence of data attributes. That seems like a very big anti pattern in rails.

But honestly, the top comment is the correct rails convention. Have controller handle the rendering of modal or redirect. 

No need to do this on the front end. If you need to pass in data on click, use a form

comment from reddit r/rails: You are abstracting over two different elements that mean two different things. A link is navigation. A button is an action. If the gated thing is “go to this URL when allowed, otherwise show paywall,” the clean Rails and Stimulus way is usually still to render a link, and let the gating behavior decide whether to allow navigation or intercept it with preventDefault(). You shouldn't be determining UI functionality based on the existence of data attributes. That seems like a very big anti pattern in rails. But honestly, the top comment is the correct rails convention. Have controller handle the rendering of modal or redirect. No need to do this on the front end. If you need to pass in data on click, use a form

I hate Rails and Rails developers so much these days. I can't think of any dev community that is completely fine with, and I'll be generous here, mediocrity.

Like, does this commenter even have the slightest clue how stimulus fucking works??

6 hours ago 0 0 0 0
Cover art for the reggae compilation “High Explosion” in a media player

Cover art for the reggae compilation “High Explosion” in a media player

Sometimes I feel kinda smart. Today for example I’m able to enjoy my personal music collection on a walk nowhere near my home WiFi.

10 hours ago 1 0 0 0

Preposterous, like crab ragoons

3 days ago 0 0 0 0

Why has no-one told me about the Studio One STORE?

1 week ago 1 0 1 0

Can’t forget about Liquidator Brunt too

2 weeks ago 1 0 0 0
Shopping center sign featuring Haus of Yarn

Shopping center sign featuring Haus of Yarn

@xoxogossipgita.bsky.social this is near my house. Seems like they are pretty calm but I will keep you posted if they get into any drama

2 weeks ago 0 0 0 0
Advertisement
Helldivers 2 armor cosplay I'm building

Helldivers 2 armor cosplay I'm building

From work slack. I have no idea what he's talking about

3 weeks ago 1 0 0 0

If only I knew where to get some "Fuck Data Centers" merch

4 weeks ago 0 0 0 0

Yet we can't fucking pay the TSA. Clown ass government

4 weeks ago 0 0 0 0

They sewed all night and they sewed all day. Indian rulers on a holiday. #SUPERsunday

1 month ago 0 1 0 0

An amazing record. The Morricone-inspired bits are fantastic

1 month ago 0 0 0 0

Good to see bullshit getting ratio’d.

1 month ago 0 0 0 0
Cover of Lana Del Rey’s Honeymoon, showing “High by the beach “ as now playing

Cover of Lana Del Rey’s Honeymoon, showing “High by the beach “ as now playing

All I want to is get high by the beach, get high by the beach, get high🎵

1 month ago 0 0 0 0
Advertisement

The Japanese Parliament "Would" meme came too late...these guys would've had a field day with it.

1 month ago 0 0 0 0

quite literally the fun police

1 month ago 1 0 0 0

Throw those books in the trash

1 month ago 2 0 0 0

Niiiice

2 months ago 1 0 0 0
An ad for a sold out show feature the Eagle-maniacs: the music of Don Henley and the Eagle at 3rd and Lindsley.

An ad for a sold out show feature the Eagle-maniacs: the music of Don Henley and the Eagle at 3rd and Lindsley.

Ironically, you can see Vince Gill - a member of the actual Eagles - play this venue literally every Monday night.

2 months ago 0 0 0 0
Cover Bobbi Humphrey’s “Blacks and Blues” LP featuring Bobbi and her flute.

Cover Bobbi Humphrey’s “Blacks and Blues” LP featuring Bobbi and her flute.

You know Spring is right around the corner when Bobbi Humphrey LPs start hitting the turntable.

2 months ago 0 0 0 0

In Illinois the problem is you have to drive to Michigan to get a decent deal

2 months ago 1 0 0 0

Congrats! I was rooting for Darnold !!

2 months ago 1 0 0 0

I hop Darnold cashes it in

2 months ago 0 0 0 0
Advertisement

Ask not what your country can do for you, but why do we not have a grand ballroom at the white house?

2 months ago 0 0 0 0

they're so cooked

2 months ago 0 0 0 0

I was definitely pulling for Clipse to win AOY, but Bad Bunny is 100% deserving.

2 months ago 0 0 0 0

I used the think Cher was corny as hell, but I've gained wisdom in my later years, and I can confidently say that Cher fucking rules.

2 months ago 0 0 0 0

Holy shit. A mini-Fugees reunion!

2 months ago 0 0 0 0

Pretty cool to see Todd Snider get honored by the Grammys

2 months ago 0 0 0 0

Did Pharrell just say "the" Clipse? I feel vindicated every time I would say it that way and some nerd would be like "erm, it's just 'Clipse'"

2 months ago 1 0 0 0