I got a solution from another old thread in a different forum like map.login '/login', :controller => 'admin/user_session', :action => 'new', :conditions => { :method => :get } # This line does the trick: map.connect '/login', :controller => 'admin/user_session', :action => 'create', :conditions => { :method => :post }
Then in new.html.erb <% form_for @user_session, :url => login_path do |f| %> This is perfectly right. But if I have a route like map.root :controller => "users",:action => "new" And if my form is like <% form_for @user do |f| %> Please guide how I can apply this here. Thanks Tom -- 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.