in Ruby all access to object attributes is thru methods
- there is no direct way like
obj.field
in Python
in Ruby method calls may have no ()
obj.method
is the same asobj.method()
# get all application routes
rake routes
# get all application routes on Heroku
heroku run rake routes
# list all rake tasks
heroku run rake -T
- empty controller method just makes it render the view
- CSS and JS are compiled into single file
- watch out for magic imports
# work with objects from command line
$ heroku run console --sandbox
irb(main):001:0> User.count
- this is awesome - http://installfest.railsbridge.org/intro-to-rails/intro-to-rails
linking to objects on view
s has a lot of helpers https://guides.rubyonrails.org/routing.html#path-and-url-helpers which is bad, because now there is not universal grep to find all the links.
links useful to construct the reliable search query for finding all references to certain objects with link_to
, link_to_if
etc.