search for: hide_oth

Displaying 1 result from an estimated 1 matches for "hide_oth".

Did you mean: hide_on
2006 Feb 27
0
Example code for select_from_db (a.k.a. combo box)
...sets_controller.rb ==== def updateform case params[:field] when "select" case params[:value] when "other" render :partial => "show_other", :locals => { :params => @params } else render :partial => "hide_other", :locals => { :params => @params } end when "other" render :partial => "hide_other", :locals => { :params => @params } end end ==== app/views/assets/_show_other.rjs ==== tag = "#{params[:object]}_#{params[:method]}_#...