Skip to content

Instantly share code, notes, and snippets.

@BartlomiejSkwira
Created September 5, 2013 08:03
Show Gist options
  • Select an option

  • Save BartlomiejSkwira/6447258 to your computer and use it in GitHub Desktop.

Select an option

Save BartlomiejSkwira/6447258 to your computer and use it in GitHub Desktop.
rails admin
custom view
#lib trzeba przeładowywać z każdą zmianą
#dodatkowa akcja - maincontroller jest scope-em a nie akcja!!
otworz main_controller , dodaj go do lib i w configu
config.autoload_paths += ["#{Rails.root}/lib/rails_admin"]
folder i bez /
- chujnia ten sposob nie zadziała, rails admin przeładowuje na bieżąco main controller ipo oswiezeniu strony nie ma juz naszego nadpisanego kodu :////
id jest w paramsach albo w @abtract_model.first.id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment