4
\$\begingroup\$

I hope this question is good for this site:

https://codereview.stackexchange.com/questions/61534/string-interpolation-in-routes-view

If it isn't, is it possible to move it to another site?

\$\endgroup\$
10
\$\begingroup\$

This code actually works perfectly. The only problem is that it matches every web page to my not found page.

If it was working perfectly, then by definition there wouldn't be any problems. In particular, matching every web page to your not found page really sounds like a problem.

resources :movies, except: [:show]

It should match the web page to the actual page.

I only have a show.html.erb file in my views folder. That can't possibly be the problem.

Is it possible to use string interpolation on view file names?

You seem to be wondering about possible solutions to your problem. Finding solutions to problems is clearly Stack Overflow material. Code Review is more about finding problems in solutions that may appear perfect to you.

Sometimes it's just a misunderstanding. If there is really no problem, and you want a review of your approach, or you want recommendations for a better way, then you can rephrase your question in a way to clarify. Being put on hold doesn't have to be the death of your question: if you rephrase it well it can be reopened.

\$\endgroup\$
  • 3
    \$\begingroup\$ "Code Review is for finding problems in your solution." - I feel like that should go on a bumper sticker. \$\endgroup\$ – RubberDuck Aug 30 '14 at 11:18
  • \$\begingroup\$ @RubberDuck: ....not to solve problems that make the code not working. These belong to StackOverflow. \$\endgroup\$ – firda Sep 10 '14 at 6:52
  • \$\begingroup\$ I use "I don't like what it does" as "likely not good for CR" and "I don't like how it does" as "likely good for CR". \$\endgroup\$ – Pimgd Sep 12 '14 at 9:45
4
\$\begingroup\$

You've said that it works perfectly, but you've also pointed out some flaws. The one question about using string interpolation is also off-topic.

As such, I could've have this migrated to Stack Overflow, but they may have some problems with the topicality (much of the code already works), so I've closed it instead. You can always post the non-working aspects over there yourself.

\$\endgroup\$
4
\$\begingroup\$

If you are unsure about question fitting the scope of a site,

Most of the stack exchange sites has chat rooms, you can put the question(whole question) in a GitHub gist and then ask users in a chat room to see if it will be a good question before posting it.

Here we have the 2nd Monitor.

But before all that read the help center, then browse the meta site starting with the questions.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .