[rspec-users] lots of nil problems!
lists at ruby-forum.com
Fri Mar 19 22:53:48 EDT 2010
Patrick Collins wrote:
> I have this in my controller action:
> from_address = Setting.find_by_name("shipping_from_address").address
> and my spec fails:
> NoMethodError in 'Admin::ShippingLabelsController should render a pdf
> undefined method `address' for nil:NilClass
Patrick, please create a new thread for this, since it doesn't have
anything to do with the current topic.
Posted via http://www.ruby-forum.com/.
More information about the rspec-users