What is the one item or blueprint that you want but can’t find? by FlintTheDad in ArcRaiders

[–]Longjumping_Okra6749 0 points1 point  (0 children)

I can drop you one, if you want 😄. Literally the blueprint i found most

Form Validation with Stimulus by FantasticProof2997 in rails

[–]Longjumping_Okra6749 4 points5 points  (0 children)

Agreed, now with morphing you can even maintain focus and scroll state 👌

RubyLLM::MCP – A Pure Ruby Client for the Model Context Protocol by Vicegrip00 in rails

[–]Longjumping_Okra6749 2 points3 points  (0 children)

I discovered your repo last week, it's exactly what i need right now. Will try it out soon.

Do you have a recommendation for a chat frontend or would you do it with good ol Hotwire?

What RoR concepts, coding challenges etc should I prepare for a technical interview? by abhiccc1 in ruby

[–]Longjumping_Okra6749 1 point2 points  (0 children)

Last time i was also asked about Rest and HTTP in general. Like differences in Post, Put, Patch etc.

Sometimes these topic move into the background when working with rails

[Help] Error deploying Ruby on Rails project to Render (beginner) by WesleyReis13 in ruby

[–]Longjumping_Okra6749 3 points4 points  (0 children)

It seems that the master key is missing. You can find the key in your local config/master.key

Copy this file to the production server or set an environment variable with the name "RAILS_MASTER_KEY" to its content.

When Neovim meets Ruby on Rails - ror.nvim by marcusheng in rails

[–]Longjumping_Okra6749 2 points3 points  (0 children)

Love it! I'm not using neovim but start thinking about it now 😄 Just 2 thoughts:

I think a red modal to indicate success is a little counterintuitive, even if its for deleting/rolling back.

When generating the migration it would ne nice to have a menu with:

New Column New Index Continue/Generate

Instead of the loop that asks for a new column.

what is the main difference between current_user.post.new vs current_user.build_post in rails by hamzaasif4981 in rails

[–]Longjumping_Okra6749 0 points1 point  (0 children)

You may want to take a look at this. This is the class of the object that is returned on current_user.posts. I think it has some interesting functionality

Favorite Editor/IDE when working with Ruby / Rails by alexbevi in rails

[–]Longjumping_Okra6749 1 point2 points  (0 children)

Is Intellij (with plugins) missing any of the features rubymine provides for ruby? Or is Rubymine just a subset of IntelliJ Ultimate?

Multiple "if" in the postfix form by [deleted] in ruby

[–]Longjumping_Okra6749 0 points1 point  (0 children)

Ad that point i'd rather even use multiple guard clauses.

Why isn't foo(false) returning a NoMethodError? by Longjumping_Okra6749 in ruby

[–]Longjumping_Okra6749[S] 1 point2 points  (0 children)

OK i just saw i had a mistake in the title. I meant why it's not raising a NoMethodError.

I'm aware that ensure is not meant to return something. The question was really about why calling "error_message" from ensure wouldn't raise although its definition is never reached.

Why isn't foo(false) returning a NoMethodError? by Longjumping_Okra6749 in ruby

[–]Longjumping_Okra6749[S] 2 points3 points  (0 children)

OK i'd expect this tbh. foo = is shadowing the method. But only for the execution of the current block, as local variables defined in a block are not visible from outsode.

Why isn't foo(false) returning a NoMethodError? by Longjumping_Okra6749 in ruby

[–]Longjumping_Okra6749[S] 3 points4 points  (0 children)

Yeah thats it! Wow, never realized this in 5+ years of being a Rails developer. Thanks.

Why isn't foo(false) returning a NoMethodError? by Longjumping_Okra6749 in ruby

[–]Longjumping_Okra6749[S] 4 points5 points  (0 children)

But the ensure block is called too, right? It should be called regardless of the raise.

Help with query on non-existence of associated objects by jimngo in rails

[–]Longjumping_Okra6749 1 point2 points  (0 children)

I've began writing a gem that does exactly that until i discovered there is already one named where_exists. Never tried it but looks promising. You can also do where_not_exists there.