search for: listingscontrol

Displaying 3 results from an estimated 3 matches for "listingscontrol".

2006 Aug 15
2
Working with user data
...'' data). I am using LoginEngine and have the authentication working correctly. I started by generating scaffolding for a model named "listing". Each user will have their own listings. The Listing model belongs_to user and of course User has_many listings. The scaffolding for ListingsController made this: def list @listing_pages, @listings = paginate :listings, :per_page => 10 end Simple enough, but this shows all listings from any user of course. I''m able to get it to work as I want by changing it to this: def list @listings = current_user.listings @l...
2006 Jul 31
2
Indexing a lot of records
When trying to index a rather large database of records (50,000), acts_as_ferret takes a long time, then invariably times out and all the index information isn''t created. Does anyone know how to rectify this? -- Posted via http://www.ruby-forum.com/.
2008 Apr 07
0
Haml and View tests
Does Rspec work nicely with Haml for controller integrated view tests? I am getting the following error: =================== ActionView::TemplateError in ''Admin::ListingsController index should get a 200 OK'' undefined method `photo'' for true:TrueClass On line #2 of admin/listings/_listing.html.haml 1: %tr 2: %td.photo= image_tag(listing.photo.url(:thumb), :class => :photo) Both photo and the photo.url are stubbed out. Thanks for the help....