@trainee is an instance of User class

my form partial code :

<% form_for :@trainee, :html => {:class => 'generalform'} do |form| %>
        <%= render :partial => "form", :object => form %>
         <%= form.submit "Register", :class => 'go' %>&nbsp;<%= link_to
'Cancel', trainees_path %>
<% end %>

the generated html is obviously :
<form id="new_user" class="generalform" method="post" action="/users">

but I would like to send it to a trainee_controller  (rather than to
user_controller... )

(don't want to subclass, I am using roles, and a trainee is a user
with 'trainee' role

is it possible ?if yes, how should I proceed ?

many thanks ba
erwin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to