[Rails] Accessing Parameters - Params (nil)

ryan
2006-05-02T02:45:19Z

I''m trying to render a component that pulls information based on a
parameter that is passed by a link_to item, but my params object is nil
for the following code in the controller:

records = ControllerName.find(params[:id])


but the error page also has this: Parameters: {"id"=>"7"}


I''ve tried to access it (in the controller) using:

variable = params[:id]

but still nothing.


I''m sure this is basic.  Is there a way to see what params are being
recognized by the controller?

Any help or references are appreciated!

--
Posted via http://www.ruby-forum.com/.