How would you write this on the same line or on consecutive lines without do-end?
map.resources :magazines do |magazine| magazine.resources :ads end
How would you write this on the same line or on consecutive lines without do-end?
map.resources :magazines do |magazine| magazine.resources :ads end
Instead of do
/end
, you could simply use {
/}
:
map.resources :magazines {|magazine| magazine.resources :ads}
wouldn't using curly braces work?
map.resources :magazines {|magazine| magazine.resources :ads}