阅读背景:

如何制作Rails视图.erb文件打印URL的最后一部分?

来源:互联网 

I'm brand-spanking new to Rails. I've learned how to make static controller actions and corresponding view files. Now I want to make it so that when I go to localhost:3000/hi/anita, the page says "Hi anita", but when I go to localhost:3000/hi/bob, it says "Hi bob". Of course, I don't want to make anita and bob actions. You get the idea. Any hints how I can do that? Thanks!I'm brand-spanking new to Rails. I've learned h




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: