@tutorial = Tutorial.find(params[:id])
@category = Category.find(params[:category_id])
if isNumeric(params[:id]) || isNumeric(params[:category_id])
  ok_path = tutpmlnk_path(:category_id => @tutorial.category, :id =>
@tutorial)
    redirect_to ok_path unless request.fullpath.include?(ok_path) #
sth like that... Not best, bo ok for beginning.
   ...
end

`request' is a method defined in your controller superclass. Same
thing as `params'.

Robert Pankowecki

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to