Re: Input/output error

Rick DeNatale
2010-05-06T17:49:16Z

On Thu, May 6, 2010 at 4:44 AM, Nitin Mathur
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:
> Hi
>
> My application was running fine. All of sudden I started to get an
> input/output error in one of the templates. However, error goes away
> once I restart the mongrel server but after some time again same error
> appears. I am pasting the trace below. Please help me getting rid of
> this error forever.
>
> ActionView::TemplateError (Input/output error) on line #46 of
> app/views/starwars/edit_folders.rhtml:
> 43:
> 44: Platform Applicable:
> 45:
> 46: <%= select
''plat'',''id'',Platform.find(:all,:order =>
''start
> DESC'').collect{|p| [p.name, p.id]},{:selected =>
> Platform.find(params[:p]).id} %>
> 47:
> 48:
> 49: <%#= link_to_function
"ADD","Folders.copy_select();" %>
>
>
 /usr/local/rubygems/gems/gems/actionpack-1.13.3/lib/action_view/helpers/form_helper.rb:349:in
> `write''
>
 /usr/local/rubygems/gems/gems/actionpack-1.13.3/lib/action_view/helpers/form_helper.rb:349:in
> `id''
>
 /usr/local/rubygems/gems/gems/actionpack-1.13.3/lib/action_view/helpers/form_helper.rb:349:in
> `send''
>
 /usr/local/rubygems/gems/gems/actionpack-1.13.3/lib/action_view/helpers/form_helper.rb:349:in
> `value''
>
 /usr/local/rubygems/gems/gems/actionpack-1.13.3/lib/action_view/helpers/form_helper.rb:340:in
> `value''
>
 /usr/local/rubygems/gems/gems/actionpack-1.13.3/lib/action_view/helpers/form_options_helper.rb:300:in
> `to_select_tag''
>
 /usr/local/rubygems/gems/gems/actionpack-1.13.3/lib/action_view/helpers/form_options_helper.rb:66:in
> `select''
>    #{RAILS_ROOT}/app/views/starwars/edit_folders.rhtml:46:in
> `_run_rhtml_47app47views47starwars47edit_folders46rhtml''
>
 /usr/local/rubygems/gems/gems/actionpack-1.13.3/lib/action_view/helpers/capture_helper.rb:108:in
> `call''
>
 /usr/local/rubygems/gems/gems/actionpack-1.13.3/lib/action_view/helpers/capture_helper.rb:108:in
> `capture_erb_with_buffer''
>

That''s an OLD version of Rails!

Not sure what''s going on but it appears that id is being sent to
whatever the @plat instance variable is referring to, and that is
somehow doing a write.

What does the controller code look like


--
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.