Make sure is an int, and GET access
Easy questions for you guys (and gals). I've only been studying ruby/rails for about 2 days, so bare with me :)
In one of my controllers I'm doing something like:
id = params[:listing]
@listing = Listing.find(id)
basically, trying to show the details on a specific listing. If it is called like
website.com/controller/view_listing/219, i get params[:id] equal to 219, right?
Also, how do I verify that it is actually an int (sql safe.)