ActionController::RoutingError

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

Hello <%=h @name %> <%=h @name %> <% form_tag :action => 'sign_in' do %>

Enter your name: <%= text_field_tag 'visitor_name', @name %>

<%= submit_tag 'Sign in' %> <% end %> Thanks

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs