This works:
resources :students do
member do
get 'frog'
end
end
Here's what I understand it is to be doing: the resources method(?) is sending a code block to the member method(?) and telling it to create a GET action with the verb 'frog' (which is an entry in the controller, it has a view, etc.)
This also works:
resources :students do
member do
get :frog
end
end
Pretty much the same, but what kind of data is :frog
in this version?
I'm trying to understand every line of my scaffolded app rather than take anything on faith. All the tutorials claim the RESTful part is the difficult piece to understand, but I think that's pretty clear. It's the Rails conventions that are tripping me up.
Any explanations/expansions on the above are welcome.