after an initial render, as per a user''s selection, some form text
fields are replaced without any problem but a mail_to link helper !
which goes in the limbo ( I tested without it no problem... string
replacement is OK)
what should I modify ? thanks for your help
---in the form
<tr><td colspan="2" id="emailField"><%=
render :partial => ''emailfield''
%></td></tr>
--- in the controller
def contact_selected
render :update do |page|
@contact = Contact.find_by_id(params[:id]) unless params[:id].blank?
page.replace_html ''addressField'', :partial =>
''addressfield'',
:locals => {:contact => @contact}
page.replace_html ''phoneField'', :partial =>
''phonefield'', :locals =>
{:contact => @contact}
page.replace_html ''emailField'', :partial =>
''emailfield'', :locals =>
{:contact => @contact}
end
end
___ in the emailfield partial
<%= mail_to(@contact.email1, @contact.email1, :subject => ''Your
booking'', :encode => ''javascript'') %>
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---