Displaying 1 result from an estimated 1 matches for "establishment_contents_controller".
2007 Oct 15
6
Form with two buttons
...t;
''llamada'', :opMenu => opcionMenu %>
[...]
<%= image_submit_tag ("../images/incluir.gif", :op=>"addImage") %>
[...]
<%= image_submit_tag ("../images/eliminar.gif", :op=>"delImage") %>
<%= end_form_tag %>
establishment_contents_controller.rb:
--------------------------------------
def llamada
if (params[:op].nil?) then
if (params[:op] == "delImage") then
destroy #Borra imagen
elsif (params[:op] == "addImage") then
addImagenContenido #AƱade imagen
end
end
end
The erro...