Errno::EINVAL

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

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. <

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs