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 Sivakumar <
[email protected]> wrote:
>
> 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' %><sup><%=
> date_to_ordinal(myblogpost_homepage.created_at.strftime '%d')
> %></sup> <%= 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
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---