inf:rails:notes
- Kontroler udostępnia widokowi tylko zmienne obiektu (instance variable, poprzedzony symbolem
@). - Jeśli chcemy udostępnić coś wszystkim kontrolerom, umieszczamy to w
ApplicationController(app/controllers/application_controller.rb). t.timestamps, is a special command that creates two magic columns calledcreated_atandupdated_at.User.create!(read “create bang”) works just like thecreatemethod except that it raises an ActiveRecord::Record-Invalid exception if the creation fails.- Jeśli zmieniamy domyślny język aplikacji, trzeba pamiętać o polach date_select: http://i18n.lighthouseapp.com/projects/14947/tickets/12
inf/rails/notes.txt · Last modified: 2021/02/16 09:56 by 127.0.0.1
