> Just to make sure, this is the code on page 360: > > class AdvertsController < ActiveRecord::Base > hobo_model_controller > auto_actions :all > def index > @adverts = Advert.published.all > end > end
I think the .all is not needed since we switched from Hobo's def_scope to named_scope @adverts = Advert.published should suffice Tom -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
