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 So I also try... @a = Part.find(the_id.to_i) Get same error. If I do @a = Part.find(2), it works. But I need to do the "find" using a variable, instead of hard-coding the value. (I know I shouldn't be doing this in a view and I know the code is ugly by Ruby programming standards but I'm testing to see if it works, then I'll rename it) -- 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.

