Hi All, I am just learning Rails. I had encountered a routing error,
though I think I have specified the correct rules in the routing.rb. I
have attached the code. Please help
routing.rb
map.connect '':controller/:action''
map.connect '':controller/:action/:id''
map.connect '':controller/:action/:id.:format''
Controller
class EntriesController < ApplicationController
def sign_in
@name = params[:visitor_name]
end
end
View
<html>
<head><title>Hello <%=h @name %></title></head>
<body>
<%=h @name %>
<% form_tag :action => ''sign_in'' do %>
<p>Enter your name:
<%= text_field_tag ''visitor_name'', @name %></p>
<%= submit_tag ''Sign in'' %>
<% end %>
</body>
</html>
Thanks
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.