:plain :ruby member = pdfable membership = member.memberships.current.first person = member.person .card .left-side .qr-code %img{:src => (member.download_link_for(:qr_code) rescue 'http://placehold.it/150/ffffff.png&text=No+QR+Code')} .right-side .organization-name #{member.organization.name} .membership Member: #{membership.membership_type.name} .person-name #{person.first_name} #{person.last_name} .membership-number Member ##{member.member_number} .expiration Valid until #{I18n.localize membership.ends_at, :format => :date}