【发布时间】:2011-08-11 06:18:38
【问题描述】:
我遵循了这个: http://ruby.railstutorial.org/chapters/filling-in-the-layout#sec:user_signup .
但是当我尝试访问http://localhost:3000/pages/ 时,它返回“路由错误没有路由匹配”/pages“”
这是我的路线.rb
Sample4App::Application.routes.draw do
get "users/new"
match '/signup', :to => 'users#new'
match '/contact', :to => 'pages#contact'
match '/about', :to => 'pages#about'
match '/help', :to => 'pages#help'
match '/', :to => 'pages#home'
end
这是我的 home.html.erb
<h1>Sample App</h1>
<p>
This is the home page for the
<a href="http://railstutorial.org/">Ruby on Rails Tutorial</a>
sample application.
</p>
<%= link_to "Sign up now!", signup_path, :class => "signup_button round" %>
我尽我所能。但还是。 真的需要帮助。谢谢
【问题讨论】:
标签: ruby-on-rails