Displaying 1 result from an estimated 1 matches for "partsloc".
Did you mean:
partoc
2006 Jan 12
10
uninitialized constant error
...I''m a newbie to Rails, and I just finished going through the cookbook
tutorial. I''m now trying 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(@p...