Re: [Rails] ActionView::Template::Error (undefined method `strftime' for nil:NilClass)

2012-06-26 Thread yatta20
I replaced line 31 with the following text: <%unless enewsletter.publication_date.nil?%><%=enewsletter.publication_date.strftime("%m/%Y")%> I still get the page We're sorry but something went wrong. On Tuesday, June 26, 2012 8:46:30 AM UTC-4, Carlos Mathiasen wrote: > Hi, you can see the error

Re: [Rails] ActionView::Template::Error (undefined method `strftime' for nil:NilClass)

2012-06-26 Thread Carlos Mathiasen
Hi, you can see the error in this log: ActionView::Template::Error (undefined method `strftime' for nil:NilClass): nil.strftime("%m/%Y") doesn't exists 31: <%=enewsletter.publication_date.strftime("%m/%Y")%> enewsletter.publication_date is nil Matt's

[Rails] ActionView::Template::Error (undefined method `strftime' for nil:NilClass)

2012-06-26 Thread yatta20
Hello, I'm a newbie. I need help resolving this issue. I recently added a pdf to the newsletter admin section of the website and now I can no longer view page 2 of the list of pdf's. Nor can I login to see the newsletters as a student. I'm using Ruby 1.9.3, Rails 3.2.1. Here's the information