On 15 February 2011 21:53, TJ <[email protected]> wrote: > My users are getting 500 errors from token link whether they click or > paste into browser. Any help appreciated as I am stumped. > > Token linked with with Mail Chimp API. > > Thanks. > ---------------- > > A ActionView::TemplateError occurred in mailer#weekly: > > undefined method `token' for nil:NilClass > On line #9 of app/views/mailer/weekly.html.erb > > 6: <body style="margin:0; padding:0; background: #fffff"> > 7: <table width="100%" border="0" cellspacing="0" cellpadding="0" > style='padding-left: 10px'> > 8: <tr><td>Please view Weekly online by clicking link:</td></ > tr> > 9: <tr><td> <%= link_to > "#{weekly_mailer_online_url( @mailer.token )}", > weekly_mailer_online_url( @mailer.token ) %> </td></tr>
The error suggests that @mailer is nil Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en.

