Hi
I could solve it by modifying routes like
map.connect ''/staff_registration/:code'', :controller =>
:staff,
:action => :registration_completion,:conditions => { :method => :put }
map.staff_registration ''/staff_registration/:code'',
:controller =>
''staff'', :action => ''registration''
And modified action registration_completion like
def registration_completion
@user = User.find_by_perishable_token!(params[:code])
@staff = @user.staff
-------------
-----------etc
end
And also form_for like
<% form_for @user, :url => staff_registration_url(:code =>
params[:code]), :html => {:method => :put} do |f| %>
-----
This problem was there in my mind for months. Now it is solved.
Posting it for whom search with similar problem
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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.