3 ms·
Ruby has a sane syntax. It probably seems a little foreign if you're new. '#' is the standard notation used throughout the Ruby language for instance methods.
by dablweb 13y ago
Ruby has a sane syntax. It probably seems a little foreign if you're new.
'#' is the standard notation used throughout the Ruby language for instance methods.
Think of it like this:
Blog::Application.routes.draw do |implicit_self|
implicit_self.get( '/patients/:id', { to: 'patients#show', as: 'patient' } )
end