search for: show_edit_form

Displaying 2 results from an estimated 2 matches for "show_edit_form".

2006 Apr 07
2
Re: Re: page.replace_html "#{var_containing_id_name}", :partial
> you mean like this? > > def do_some_ajax_thing > <at> element_id = "content_div" > end > > do_some_ajax_thing.rjs > > page.replace_html <at> element_id, :partial => "edit" > > remember, the view templates have access to the attributes defined > in the controller Actually, its more like this: I have a list page. Each row
2009 Aug 23
0
Best way of moving some jQuery from a view helper
...9;'NEW_RECORD'' do |faddress| html = render(:partial => ''address_container'', :locals => { :faddress => faddress, :uid => ''NEW_RECORD'', :show_edit_form => true }) page << "jQuery(''#address_list'').prepend(''#{escape_javascript(html)}''.replace(/NEW_RECORD/g, new Date().getTime())).effect(''highlight'', {}, 300)" end end end [/code] So basically I want to move t...