Hi, I have a simple form in my controller "before_home". In the form I want to create a user, si I use the users_path on my form. But look at the html generated... Why do I have an action before_home? I should be "users" in the action. Does someone knows where this could come from?
View: <% form_for users_path do |f| %> <p> <%= f.label :email %> <%= f.text_field :email %> <%= f.label :ville %> <%= text_field_with_auto_complete :user, :ville_name, { :size => 15 }, { :url => formatted_villes_path(:js), :method => :get, :param_name => 'search' } %> <%= f.submit "Suivant" %> </p> <%end%> Generated HTML: <form method="post" action="/before_home"> <input type="submit" value="Suivant" name="commit" id="/before_home_submit"> </form> Greg -- Posted via http://www.ruby-forum.com/. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.