Displaying 1 result from an estimated 1 matches for "bol_lines".
Did you mean:
bloglines
2010 Jan 22
0
creating a new record in a pop-up-window
...:
<%=link_to_remote "Add Tasks", :url => { :action => "open_new_window",
:projectid=>@bol.id } %>
2)controller
def open_new_window
p ">>Open Window: #{params[:projectid]}"
render :update do |page|
page << "window.open(''/bol_lines/new'', ''A Window'',
''left=20,top=20,width=500,height=500,toolbar=1,resizable=0'' );"
end#end render page
end
3) how do i get the projectid into the new pop-upwindow to to show the
title and ultimately into the db to store the right foreign-ke...