Quoting Leonel *.* <[email protected]>: > I got the id of a "part" in variable "the_id". In a partial > "_order_fields.html.erb" > > So I do this... > @a = Part.find(the_id) > > I get this error... > Couldn't find Part without an ID >
Uhh, are you sure the_id has a numeric value at that point in the view? You don't say where or how it is set. Local controller variables are not shared with views, though controller instance variables are. And anything can be passed to a partial, though not regular view through the :locals hash. HTH, Jeffrey -- 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.

