preethi
1
Hi ,
I’m getting this error
“Errno::EINVAL in Home#home_page”
where home_page contains periodic_remote_call
The error is shown in the line
<%= myblogpost_homepage.created_at.strftime ‘%d’ %><%=
date_to_ordinal(myblogpost_homepage.created_at.strftime ‘%d’)
%> <%= myblogpost_homepage.created_at.strftime ‘%b’
%> <%= myblogpost_homepage.created_at.strftime ‘%Y’ %>
The trace is
app/views/blogposts/_myblogpost_homepage.html.erb:9:in `write’
am i doing something wrong ?
Please help.
Thanks
preethi
2
This blog post might be of some help:
http://pullmonkey.com/2008/2/19/errno-einval-invalid-argument/
On a different note, you can create string from time this way also:
<%= myblogpost_homepage.created_at.strftime(“%d %b %Y”) %>
Thanks,
Abhinav
अà¤à¤¿à¤¨à¤µ
http://twitter.com/abhinav
On Mon, Sep 7, 2009 at 10:04 AM, Preethi S. <
preethi
3
Abhinav S. wrote:
This blog post might be of some help:
http://pullmonkey.com/2008/2/19/errno-einval-invalid-argument/
On a different note, you can create string from time this way also:
<%= myblogpost_homepage.created_at.strftime(“%d %b %Y”) %>
Thanks,
Abhinav
अà¤à¤¿à¤¨à¤µ
http://twitter.com/abhinav
On Mon, Sep 7, 2009 at 10:04 AM, Preethi S. <
Thank you Abhinav
Lemme try with that.
-Preethi