Displaying 2 results from an estimated 2 matches for "ticket_control".
2006 Mar 08
1
Nil Object Error
...lidation.  Here are my files for reference.
ticket.rb
============
class Ticket < ActiveRecord::Base
	belongs_to :agent
	belongs_to :status
	belongs_to :priority
	belongs_to :category
	validates_presence_of :employee_id, :date, :agent_id, :status_id, 
:priority_id, :category_id, :summary
end
ticket_controller.rb
============
class TicketController < ApplicationController
	layout "standard-layout"
	scaffold :Ticket
	def edit
	  @ticket = Ticket.find(params[:id])
		@employees = Employee.find_all
		@agents = Agent.find_all
		@statuses = Status.find_all
		@priorities = Priority.find_all
		@...
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