Hi, all!
I'm new in Rails.
I've read "Agile web development"  and now I want made my very first
rails application - photo album.
But I don't know how to design it RESTful.

For example I have 3 chapters and 100 photos on each one and i want
list only 10 photos on page.
How should look request for such resource?
Maybe:
site.my/chapter/2/4
(controller:chapter, action: chapter_id=2, page=4)
If its good then how to send to controller 2 parameters ?

Or maybe you can explain me how it can be done right way?

And now I also want know in general how to process request like
site.my/say/hello/to/homer
I know if it just site.my/say/hello - then 'say' - it's controller
and' hello' - it's action, but what when 'to' and 'homer'?
How exactly tell my rails application whet I want say hello to Homer?

Thanks in advance!
PS sorry for so many stupid questions but I don't have any one next to
me who about Rails((

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to