Displaying 2 results from an estimated 2 matches for "say_when".
2011 Feb 12
5
link_to a action in the controlles is not called
i have a link where it has to call a method defin in todoscontroller
named say_when but show is called
<td><%= link_to ''Say when'', todo, :action => :say_when ,
:remote => true %></td>
class TodosController < ApplicationController
# GET /todos
# GET /todos.xml
def index
@todos = Todo.all
respond_to do |format|...
2005 Oct 14
0
Adding extra field in form using ajax causes extra field to be overwritten, any way around that.
...;line_item_price" name="line_item[price]" size="30"
type="text"/></td></tr></table>
<div id="line_items">
</div>
<%= link_to_remote("Add Item", :update =>"line_items", :url => {:action =>
:say_when}, :position => "bottom") %>
<!--[eoform:invoice]-->
Here is my controller say_when action in the invoice controller:
def say_when
render_text "
<table border=1>
<tr>
<td><input id=''line_item_description'' name=''line_item[de...