Displaying 3 results from an estimated 3 matches for "ticket_pages".
2006 Aug 03
2
pagination with customer list.rhtml
(To preface this - you can just imagine I am making the cookbook from
the Rolling with Ruby on Rails tutorial)
I have made a customer list view (list.rhtml), so that I could include
attributes from multiple database tables. This works fine, however, the
list page no longer paginates (i.e. does limit the item list to 10 items
at a time, with a 1, 2, 3... links at the bottom)
I am trying to
2006 Jun 16
0
Polling pop3 and adding emails to ticket system
...def index
list
render :action => ''list''
end
# GETs should be safe (see
http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only => [ :destroy, :create, :update ],
:redirect_to => { :action => :list }
def list
@ticket_pages, @tickets = paginate :tickets, :per_page => 10
end
def show
@ticket = Ticket.find(params[:id])
#@comment = params[:id]
end
def new
@ticket = Ticket.new
end
def create
@ticket = Ticket.new(params[:ticket])
if @ticket.save
flash[:notice] = ''Ticket...
2006 Jul 13
5
how to get to the parent of a child object.
Hi, i have a problem with the following:
I have an application with patients <-->>consults
models are ok
in the view list_consults i do this:
for consult in @consults%>
<tr>
<td><%= consult.patient.name %></td>
<td><%= consult.reason %></td>
<td><%= consult.date %></td>
<td><%= link_to