search for: address_pag

Displaying 2 results from an estimated 2 matches for "address_pag".

Did you mean: address_pages
2006 Jan 26
1
Simple question about :list method in scaffolds
The automatically generated scaffolds made code like this: def list @address_pages, @addresses = paginate :addresses, :per_page => 10 end which was fine, but I only want to return the logged-in user''s addresses. So I changed it to: def list @address_pages, @addresses = paginate :addresses, :per_page => 10, :conditions => [''user_id = ?'&...
2005 Sep 18
5
NameError: uninitialized constant Addres
I created some scaffolding for an Address model and an Addresses controller. When running the functional tests for the addresses controller, I get this exception: "NameError: uninitialized constant Addres" The exception seems to start from this function: def list @address_pages, @addresses = paginate :address, :per_page => 10 end I''m guessing pluralization bug? Or did I create the scaffolding wrong? Also (probably unrelated), I''ve generated scaffolding for Orders and Strategies. I''m getting the following exceptions when running the fu...