radhames, I'm having the exact same issue here. Here's my code:
<%= semantic_form_for polymorphic_path([:admin, @user]) do |f| %>
<%= f.inputs do %>
<%= f.input :first_name %>
<%= f.input :last_name %>
<%= f.input :username %>
<%= f.input :email %>
<%= f.input :password, :as => :password %>
<%= f.input :role, :as => :select, :collection => User.roles.collect
{|x| x.to_s } %>
<% end %>
<%= f.buttons %>
<% end %>
No matter what I do -- the action that sematic_form_for generates is:
/admin/users/new
instead of /admin/users
I even tried to add the absolute path
<%= semantic_form_for admin_users_path do |f| %>
and still the action for the form came out to be /admin/users/new
Let me know if there's something I can do to get this working properly.
Thanks!
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.