okay, i'm not even sure if my title makes sense, but here's what i'm trying to do.
list is still controlled by :scaffold so i have no access to update the list action as of now.
i need to extract information from two tables in order to display show.rhtml.
do i need to code the list action before i can do this? i tried...
...but i received the following error:Code:def show @mileage = Mileage.find(@params["id"]) @mileage_vehicle = Vehicle.find(@params["vehicle_id"]) render_text @mileage_vehicle.name end
"Couldn't find Vehicle without an ID"
i also tried...
...with the same error message.Code:def show @mileage = Mileage.find(@params["id"]) @mileage_vehicle = Vehicle.find(@params["@mileage.vehicle_id"]) render_text @mileage_vehicle.name end
is there any way to get the vehicle_id from the scaffold list page or do i need to hand code the page before i can get access to it? i think i have to code the list page, but i'd like to avoid it at this point. i think you have to define what you send in the form tag and scaffolding doesn't send :vehicle_id (but does send :id).
tia...
tia...




Bookmarks