Advertisement
alewtina

Untitled

Jan 11th, 2017
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.50 KB | None | 0 0
  1. - if !@current_ref.new_record?
  2.   = simple_form_for resource, url: graph_instructions_update_user_path(resource, type: @current_ref.type, ins_type: @current_ref.instruction_type),
  3.     wrapper: :foundation_inline, method: :patch, remote: true, html: { class: 'menu-item', style: 'margin:0' } do |f|
  4.     = f.simple_fields_for :user_instruction_refs, @current_ref do |fr|
  5.       = fr.hidden_field :_destroy, value: '1'
  6.     = f.button :submit, 'Удалить информацию', class: 'button radius tiny alert'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement