I saw this in a rails 2 vs 3 comparison pdf lecture and I’m not sure what’s going on with the preview and archived flags.
post.resources :comments, :member => { :preview => :post },
:collection => { :archived => :get }
Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
:member => { :preview => :post}Is establishing another method on the member that would would be accessed like so:
comments/1/previewand would only be accessible through post.
Similarly,
:collection => {:archived => :get}establishes a method for the whole collection, that would be accessed throughcomments/archived