DEV Community

acuevasd
acuevasd

Posted on

Ruby Helpers 1

Stuff to remember

  • Fatal database errors: try bin/setup

New:

  • Use details_url to get the fully qualify URL (with the server), and some of this links required an argument for :id
  • Use full URL for redirect and for view templates use path
  • Tender template without other options we can just put the string directly
  • If we are in the same view folder matches the controller and action name matches the name template, we omit the render
  • Link_to can be use with the objects itself, if you name conventionally
  • Add a third argument (method) to Link_to, to do delete

Top comments (0)