Displaying 1 result from an estimated 1 matches for "partcontroller".
Did you mean:
cartcontroller
2006 Jan 12
10
uninitialized constant error
...rying to build my own application, and I''m trying to
add more inputs to the edit view to modify data in other tables. Below
is the controller code where I am having trouble. PartsLocation is
another table (like Part) in the database, and that is the line where I
get the error.
class PartController < ApplicationController
scaffold :part
def list
@parts = Part.find_all
end
def edit
@part = Part.find(@params["id"])
@partslocation = PartsLocation.find(@params["partnumber"])
end
end
Below is the error I am seeing related to the PartsLocation table, but I
have...