ActiveRecord::RecordNotFound

Hi group!
i'm new to ruby and trying to include the FusionCharts in my project
error Couldn't find FactoryMaster without an ID
here's my code:
def detailed
headers["content-type"]="text/html";
@factory_id = params[:FactoryId]

For whatever reason, this is nil.

Fred