For some reason the following form always sends me to the index action
<% form_for :league, :url => admin_leagues_url do |f| %>
<% end %>
If I set the :url to leagues_url (to which is also set in the routes
file) I am routed properly to the create action.
Here is the rendered form:
<form action="http://localhost:3000/admin/leagues" method="post">
Here is part of my routing file:
map.namespace :admin do |admin|
Is this a bug or am I missing something?
Thanks for the help.