frank icon indicating copy to clipboard operation
frank copied to clipboard

404s suggesting wrong template names

Open trvsdnn opened this issue 14 years ago • 5 comments

Seems to be mainly be happening with index and a few other edge cases.

trvsdnn avatar Mar 26 '10 06:03 trvsdnn

You mean the msg "Try creating index.html.haml"?

Its supposed to be just index.haml right?

Can we make it support both? index.html.haml and index.haml

jacquescrocker avatar Jul 22 '10 02:07 jacquescrocker

Yeah, that's the one. I forgot about this bug, it's pretty old. I sort of thought I might end up taking away the suggestions on the 404s. Do you have an opinion on the issue?

Either way, i'll figure something out for the next release.

trvsdnn avatar Jul 22 '10 02:07 trvsdnn

I think it should support both .html.haml and .haml. I usually name my rails templates .html.haml so it'd make it a bit easier to swap between the 2

jacquescrocker avatar Jul 22 '10 02:07 jacquescrocker

That's another issue. It might break some stuff adding support for .html.haml/erb extensions. I would like to get that added though.

Do you think having the 404 suggest templates is important though?

trvsdnn avatar Jul 22 '10 02:07 trvsdnn

oh, umm.. nah. i dont think its important to suggest templates

jacquescrocker avatar Jul 22 '10 02:07 jacquescrocker