On Thu, May 6, 2010 at 4:44 AM, Nitin Mathur <[email protected]> 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: <tr>
> 44: <td>Platform Applicable: &nbsp;&nbsp;</td>
> 45: <td>
> 46: <%= select 'plat','id',Platform.find(:all,:order => 'start
> DESC').collect{|p| [p.name, p.id]},{:selected =>
> Platform.find(params[:p]).id} %>
> 47: </td>
> 48: <td rowspan=2>
> 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 [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.

Reply via email to