dynamic-fields-for 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/dynamic-fields-for.js +6 -3
- data/lib/dynamic-fields-for/version.rb +1 -1
- data/spec/features/dynamic_fields_for_spec.rb +16 -0
- data/spec/rails_app/app/controllers/users_controller.rb +1 -1
- data/spec/rails_app/app/views/users/edit_with_clean_text.html.haml +14 -0
- data/spec/rails_app/config/routes.rb +1 -0
- data/spec/rails_app/log/development.log +671 -0
- data/spec/rails_app/log/test.log +2398 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/-3MDqJokQ4AcMSvxysTG7-39r6i1B-pmyrwoUUomcx0.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/-_etL_QyDVSrQPROnuGdRokeVNro7pcjkXYmJDrdsPU.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/-u2HfNlejYfjdRC5AG9ogLCS5mvizNn-bZG9lRLkTtk.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/-wxW3_HFc_-mSYL8bsERGv2pedA1O0QLsP2E23YKyR0.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/1BoH_LTrxOl6tBSxw4laWnkWQiPD3xTQOqCk0Ap1XD4.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/1PCmR1RtQYyHI0EbvqAnCLoGj4XuTuCCJGTEKcThCeA.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/1WzapYMqMSt9TDWmF9R7OiBG0owQf7SqSqHqbMtQ78o.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/2UGS7TcSjrYR5SXl5eCoElQV_1P0RPwI274TwXSjwiE.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/2_L69z7bPxY535aeMuRhjG4T3r8b9YF6OmF9wy_aehg.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/3mmwt_NRv4KtEApLvhv_vUmavM44Y0j7hMUoKvzIy2M.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/4H_x_YcTHL3NxV-dPscwq5uzEs6iXOrWNoDbyYw0IUI.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/5LIsbalKjEH22jTwJbT-J307sPY3JIZYbTnfMlfkyAY.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/64S7mVuSWP0iV7Cdrqm5qWFpl1-paHsFe6ZFThtKosU.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/6Kg6ouVj4BUo44rexEkY4HHecP17-yfUS1XF2vaQmac.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/7oL-Ykwk4b69NkcD66-squQ2ouY8rJS2UttpzZeNfi4.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/8a4q7INnWusBnln2Z9NKF8QOXlpGkZfq-2CuuprWfZY.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/8e01LnJebOKA6-lwP1LBg53glyBTtg45_BFIQtclDHU.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/8mKj8724IYa8t2k2D7YbN_KmEBLIwMJ9mGqIEWGQI3k.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/95b4KgvhMy7VMLVlFmlv4JJergEo5XCXKgDcCWPiBco.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/99sBYCLIk9OcQpXQ-bC2q-WJPw7O1gn0us1bTMLyE_I.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/9zsInjJBuNbjk8HUX6NeQtg2Kc53tXfYogW59R9svAs.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/AGWpxqd8FWPnLcbz3P_rxmGTsLGFofbgEGdjjT0AZLY.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/AZmInIPUpdcImqTFG2JPtATKHsKZwajEYXvEEUX1Wd8.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/AoQmRamQsifmXwN_iPQ60b9dmq1E8xnUx6Wj65r7aEI.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/BpdLeXYdvizTxgbxKfBtDVJXD0FYWsTDc8BTUQxpJ3s.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/D8TSv-amS6z0DFc5AC-LIZE2E9OCjzVwOXYuNYYyvPs.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/DLw8ik1mXEy_r4oFXrP590p2aTlbt3M1L8wglHKSkZE.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/DXePqW0v7JqKV27R0FG-4Jb1xAgFd7UdCyu6jVFrbx4.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/EBbrVxVdnnQeuvumS0S10nPNQ_7Wi7UHONEXl9BvonQ.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/ECDSKH2p7MsCLljBuC-wH453eBdA1PlFcPx_4MRAIek.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/FNXASimVrqf5eVcPoMQ02yai5CZi8Ae5YbQ7Yv738Ko.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/FyuSjY8_87n9D2LGSzfr_1vhKHwtLfmMYNuDSfk_NMs.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/GnOVXVkCTezN0QRJ01BC7Fn706PYZiFN5E5bvDzQpLM.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/H-SPP6ETmEG5QPQ2oWXM4IGxl8fCQX5INEKVexHdZTg.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/HpZN5BfCtJHaKLQhEJU2dO5o8CHzYS_d43SMyKi5s6A.cache +7 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/JddarkmreCu_5qBd6zxy_fvqlD0kN6QhrHcdRx2SOkc.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/Jm5HdDdtyhMI8aKDsDOYtORyUgedXtL3bkSFavLcywM.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/K8-QGm2SQEnLKYqW6qN73-0QERNq7d1VW0wSYtcD9P0.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/L42HCoyLbpmuYlL2Tv40nkfM76hRK4yVgsTyzb0kBnI.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/LT1rRmeuaxL96vSV2o0CkWWH1p6uDuZX9lEiIrMRsK0.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/LqA27ZwOmVr3kA3nsr9zy4fgr7dtyrsLj7nR-MdKoQ4.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/N1zLbyiz302rjmLmN3fDy5h2xa55RlstSLHZzv5CCac.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/OVemjF7kAX1YZ0wHyco3zKm8ZoebrZkUn-ljwNsp5iM.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/Ogu9k3VxYpREj-21sJY2VPdA0vynA_V4DWnoWSADJHk.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/OirWvx4BVBv325zeLEtgGEgDdoXO5B-EtNioB1UnLig.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/P2MnmgUY5eT5xw1FpGoYqOVzedNUh1rQK2UY45GuRhk.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/PmqcvDnYU64wmIILJ3MMiXPv9Pj6BopMEmEUwi17Bfw.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/Q6wkqh-ce9RlG5SQvY-aG4_iVhkO7OJxvzBexIiwMLk.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/QBrV-BPj9oNFJe_Au7KoTvXYncm_9g_HusQBoj7EeOA.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/QBtoSqaRc-HV77-elwr2El6bR80Z5Itzva3qodFtQqE.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/QFBcSLUwhfDGEAcqBQdbrQl_J7ZGO0lCb72khcCmGpI.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/QqJU17ASdMV0-oIr-aOmvxrP9gWMHtQx5B6-1VU2vM0.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/Ri9cf_4Gs4UrmMPeJcMQXNecE5hqu5nd9Xj8HKC3R7U.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/RjlKLhgDgazED6XdrQyQExo3AUQ-ekNuuA2tDBfA2t8.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/RqkkSy9ZNJJQuSLC_X2WUIY0A18PuXgIZplUA_-51V8.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/S520ACMVfFtSq712MypJ2TozYJNPBtA6o0Bql6sLjdU.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/SKsN8JsBlFb5TEi4hadc8Iwkifxgjw2kU5BDCI99jlo.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/T9yUkgKwgTK5z8Xvrof8e_ocUUWNQUzity46ZQMWLX4.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/UFL4hccRjTvWltGsVNb7gsjyD7RJl_hQODaNJBCmCR0.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/VL5a0lXo5_wOmJaTZxB59an2qNcCmKuOuvoWWXW0o-8.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/VOp0pIv_pTt1jyD5JQn5Ee721CyQFQTGdnz4ODw38i4.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/VX3BtWvmwmN_fh_dMr6eWMkmKlK6pg-gLr_ADpEfp7c.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/VlNhs1ausk67jMTAxDheDFyWaKsy3sY0vABEryZa6J4.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/WokwYMpi3gKwUWDiXVYiifjTV9gzYfYB0vOJgwd6wfE.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/X0WOQvefGPNpVHfEulRenFCrXjLo0BvN0sa1Ifg4fhU.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/X2O-c_3ahjwqkl7BkTpSLMFc2fblevHJhz3O56E0Lok.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/XVi8pDFK7Bg9HllIUWspa3FvCE4WH82hLZoio0spKMQ.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/Y781Xbm4HUpzJD-wX1kgnbkAkhKQ_HJk1HY9_ulnwOU.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/Zad2vQSmrJFT0KSZBbr6ZUgbn8VftJhVHqOuMuUh7iM.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/_MdGLT64hOfuA71MiU1eOUnIwyFa1m4HnrmT-MAfixQ.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/_qY0DUj66DW3c6L02q7FO7NNqTb1YgSdehYgrK0aNyA.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/_rfJKQcvRmlWUHtpJWPeS-emleXPUIvwNy-eWT7g8fA.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/a3Ejq0p32idwaakU2Rl3TSecjubisbHOmnIjLHlEkhA.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/ajcuKdJHbeChDsrNfQp9rdv2i7eQMfOTOnZqYweVkt4.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/cBWSX4Fmtn8gztAwXOHzlN6-U1TE_uzwWkI2EH4sbdY.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/cH8CVxzFutg_A4WnnOGuHg9d6gvj1-h3fgPR13nFhYg.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/dSHYaBgWcgih2g76rqgu_dEVEsE8tUVQ1fyNsG-gZ7s.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/eR36AsJ8AVmW0CWUW_f9i1EZkGjR3B8sCpCIGfvDEOA.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/fDNdlBYmcXDmZkzlDQVdDKN1bQtaTA6Hh1Nqcw73Bd4.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/fDeZfxsILSZiKpLytoosR79QOwLSjptH6EPIMLGtRNs.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/g45YvnrsjVOz9q61Z_XEGvEn7csb9B5uZQLsaZsT-8E.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/gEptnFlir5bD4zniPqUAZ5QMJV5ADhobh0Q23xGzRF0.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/iMvKuJrKajd4yA5GpLXTG_dIAOUCVGB-sfxX2ENIuPg.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/ihJMNtD6WSuNXEWuEuFghtWh4OBp-rX-JtSgwbVcXsc.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/iwLUldRm73B_Ifi4uORp76IDIijdQalDj6ojRcyayns.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/jUu0jllEy-Qn4DrVTcKj39q-ePyX1h9BcGEB4yS_o88.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/jazgoFSV5tDAhPiaSxWg3XYKXrI4T2X1a_1K3-LKuG4.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/kgVKdG18M5OAICLCzx8XuETOhBj7jShhM3lMkfdvIec.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/l9hHBu3WR6GPsXU_VMNLX3TONp0ZdNiNgzL_KSv1VXs.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/lTPEEtXnQq-v_gkoh5sud4Kn_-W_duZkgxJqnN6UUFY.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/m5fSqiUpmVzCYArYurmJPzBI_42qUS8mVLoZER0f9Ss.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/nJ31_U0fjHKYKQ2qiyclsKn-Ix3RoKBFG7txpxotATU.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/nP9ioohba6NrCfQwjh9DjfYo4z6tVsIwF16SFJPRCz8.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/ng17POhOjNN0AD3E0qAVSrJTQsb7rVwqEiVHSgAyVSw.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/nnTdbItfQtVw4IZ1sh7DLDAx-qax4O_9_SxOsLklkBw.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/nrE6S_fNXleRtKW5xfLDh6jfmR7bY5XXVBIw6bUvi4k.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/o0dyjV8TlES8ssuag9viLIalMVu6S04Gm-vJTdPDpCI.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/oLo32o-7yvcRy3QGskutTqR9NMiFWInP00Zp7fkL44Y.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/oWfjryDv3UmewIeY-sJ25TLatff5KTnfaH3-EteMXM4.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/oh6M0albfr7XejBIw6UkcpnUf4Wwewvjk1xJPtwcijM.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/pMvG1qrrs0M-7-L7dYRPr43VeMbLpxwOR2GLhOzlLmI.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/pi9idnEK7EomO3UG2oUFzhvkKzGn9Y0pNi79cMn2GGY.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/pz58xRThzGXQPz98uyo_ao8GBC6SyFlLavYQ8YvtGBs.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/q1eyEo2Vi-FLY-ByNhhjxwCz00X8jDquKZ4xZqnUF30.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/qaWhW95gBYxQjIWcPk4v_Y9Lw0VvxlIC-9JFwRoFras.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/r6OBVBNO_rWeU10JCrvjNcWYuuGPWM9J8xhMOIcjbg0.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/rWXje7Tf2Adnr3wIknV5bE5YajF3lyKBWcwuEcWmFbQ.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/rdTNvedZfikv3ay8_MqOZfyHH-Ffmsef_rXBO2BJczE.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/rhCmpI_OFwnFgfKS1x8Tk9gnADL-LltPi7KiSCM2H1s.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/sZbtFDJVmY7mne8jZCZLZ2Iwa_gRib4TFqW0JOafMU4.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/tN4FP5vaC7AjViP6RyjeuESqgDg9C9nGxL3YvfkGo_I.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/uEJvnGUZXDS7VJdOZxLcDIUAi3gED-STiFOCQjVkpLQ.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/uzxbTxJaTFHGRynm1TXnV8eGSZFJWn2aiiNnnl0bxyA.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/v2JkPualtip0pJaxYSywxoaaKZm5-3ywQvSn6jSCvMY.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/v2tToJacn3OzQAX95K81nZRTS1n4oGGKbOTrez0ydmw.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/vEfbP3aAlexgl_ArpgEqm7agv9s-CJbq42qxsDbtJRU.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/vNWrXpoG3V-tDqS8AIfiMeI1SUmMmZ7zvNTIvBcX3oQ.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/vuFnXMZpnl_7yvI43c5xYRFFHV1zldrQj-zpT6YeVSU.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/vvnOmrTHAhRuQuTHspdoC1Ry3RhMIUzST-A6q5X1WRE.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/vwn8PLZAeS0KK0NKpFLpjxn9Bin_YKM0IqRHSuCoa1M.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/vx_IC6M7hHQ-b5ziSKBP-e0T1Xp98blLvkz7qioa_D0.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/wpYPNmEo6MNQ76rOr5GuVyhVTY7MKedqnShsodWsDq0.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/yWDINS_PzoqlgJMuuCR515-Uz2mWpzz0PRrwQGU0PdY.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/z4diqnEyUNv_bSb2OXZdOUtAcCdlwT3KDo07k3SsLSM.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/development/sprockets/v3.0/zsV9vMjm23N3LEVA2AlREAFMJcV1fiM7l0kynnzy2IA.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/0bs0_94PgFAvPqfQ7Rb6rOgiyTTvhr1V905mkiicBKU.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/1AygDv9pXbldluiP2OhyZ_9S1912vcKVyeXKo8D27pA.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/1PCmR1RtQYyHI0EbvqAnCLoGj4XuTuCCJGTEKcThCeA.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/1bWZ0wYwXcgh8k1mKFQeYA3wpkncwPGVHOsDs4JaleA.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/30ehhfKH0mKyfE-JoElppOmy3y2aBnxIfJLJIuWcjuc.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/4BAZm__Xu3XGXrk2-K-RtK5R5PcduxseD294nn0n20o.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/4fKnybx83xnr90JGRzo9GvGVDzlmSJW4dbeJX2u-Ic8.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/4kvXmwdCU16fSAEACKnO-08fzRBEdOHAvsN5vBmYYtM.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/5Af8c4sgRpDWJvhe514ctkBG-OcgsSFA6Ca0WLebYy4.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/5qcSs2c5eBdwiCKGyKQZimeeZdc_ggJThddziywoKE8.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/6YYFmnD-cbPZtiLu8nYma4E7eGKwYCQ3keZcpQwuicU.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/7AezkxCElNZU7zr52auefqOEUb_OL_uJIc0NlcEVhKo.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/8mKj8724IYa8t2k2D7YbN_KmEBLIwMJ9mGqIEWGQI3k.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/8yHKwP0T_38rs1ADTkXpg48Eodk7BQukrt3jlgZ1ih4.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/99sBYCLIk9OcQpXQ-bC2q-WJPw7O1gn0us1bTMLyE_I.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/AqXj2AX_9uW8BMRue2mW_lSdAbf48m-R84Cg2-RAT60.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/B9XCRfiEJqqkJwZWV-4sBLhgVU-TXMob5FKrZLIVWPs.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/D-Ilh-GjV3kemPDNvA81CZhkoa20cKOjfUSCvYfUIBI.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/DW8G7W_PlOJPo6LIyXLKi_XCbxW4JyhdH8IA-i6e2GI.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/EBbrVxVdnnQeuvumS0S10nPNQ_7Wi7UHONEXl9BvonQ.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/EylwlXltRz9fzRNuwE0tqjn616OEb0mu_ZwDsikvO80.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/FNXASimVrqf5eVcPoMQ02yai5CZi8Ae5YbQ7Yv738Ko.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Fl9phCnGPjvqI6gsW-IFVj0me-aphB4HxMEh0Xdqalk.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/HFFrekbPZxXUw68-2amofW0CJEuM8qNMzv9PEoc620o.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/HYzU3nV6BhqI7axDlLmIabFW4-ppwPpk5kbLV7uigys.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/IH7WJDFbNDR_w8nOzE7n_RW5jiCCq6IlHX8n_oRF1Wo.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/IdOAZkBwRtFsbBBwyCbTupu0ANqZhzyPBN--gKovA6g.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/JddarkmreCu_5qBd6zxy_fvqlD0kN6QhrHcdRx2SOkc.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/KnERE7-fLOJ0ArNPtuWWN2QT3UoowoZkmbtsp_S9UEw.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/KvMWN3ITYnuAhEdOB75lyTfhfJfmSITIdTDlme8QEt8.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/L42HCoyLbpmuYlL2Tv40nkfM76hRK4yVgsTyzb0kBnI.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/LT1rRmeuaxL96vSV2o0CkWWH1p6uDuZX9lEiIrMRsK0.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/MBWfXScdK3MoZuEmlx-ti_e4zfCnlXD32_Fb1nfQSO4.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/NB1p3kpV1sFfhQLwyPL6Ik3dZHR2Kg0F_tyAtaek9Ek.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Nbo16KLjEJpROa3yixG5wWblq-UEDU52ljGDaeL86Js.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/NmHMtHscqYmarOvHib4KHahnzwPQxcu0wteBRqqBaQo.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/OCz01FpoCrFW34y0x4H1kw8u5N0umGKUXYbdEcwWecc.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/OslWnF9fnPCHr3ASS8R8QKPidDANiIj4_Q7r1cdaiYw.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/QQIrqI7SFjXjdhsjGgEiaDVOHMxEdkeKwgkTbnDztTo.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/R8PBWF0mQvJ979AcfhhSMO2mxBcclsjIRZ5ECAuO8lo.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/RgjMRfCmbmOQoIhFOsUUTtTU1iHKrdZQlPJRumTPhKQ.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Ri9cf_4Gs4UrmMPeJcMQXNecE5hqu5nd9Xj8HKC3R7U.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/S520ACMVfFtSq712MypJ2TozYJNPBtA6o0Bql6sLjdU.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/TOWtKc8bLBVGm3X7yr8Civ7Q9badr5lWE4c75isrJgg.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Tg_746JQxCK5rO_cmz7F8yRFeAJvruuANWQzocxgIq4.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ThTM9rJRdbq2cS6pmJXDZiKufMCDgvOnlUk9zVb635k.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/UxJSjQlphuVTxBLFJCPsEsnCeTh5jClBNCT5aZfGTlc.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/V1VKh9HYxTyGqT_CqIEtIuT8nhBIQJpd1FEUBpmzr6c.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/WopU9tVY-YXwhWDk87iij04tfkMQREebz3ItYnHQ6I0.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/X-PvX1oigB23GIB5kCPs8p99mut92mW1fCtUHV7R7i4.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/X0WOQvefGPNpVHfEulRenFCrXjLo0BvN0sa1Ifg4fhU.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Yjdr5ibPqkTUbh1M6TphTwD9-PXjk0lwHncOhxhBfVM.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ZA9Is-Pw5xk3LJdMMG0wK3YzK_yJwI2XxST3KGL3kcU.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Zad2vQSmrJFT0KSZBbr6ZUgbn8VftJhVHqOuMuUh7iM.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/a2KnILx_tEYeXOvELsMruN-TxYOYX1nKsXHvP2A1ou0.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ahUB72Yk9PgqznE0IN1rYkQJfEO776PAGJGMmym9N-4.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ajcuKdJHbeChDsrNfQp9rdv2i7eQMfOTOnZqYweVkt4.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/axODdhsYOuYFHO74HviBa1tj3Xh0a5cUlU01BvOyWOA.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/b_gHHSS8RnpuUoHiG6ImQvqoRrHJRpYpzpvwmSqBqAE.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/c4rB5n0wHX_aCj595fT1KCxLvdEjCUrI9fKtGe0TkNA.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/c8QnXVVM5OLnZBptLY0-9m2u5irXdsEXPJr9AiSqgmU.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/eoKf-mE2tO8pRT4b5-5r8JbfJHC1OkaWvv-fdkN2XnM.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/eqPm76BGrpXFP1Wv5dSR1xr8m9Dgf54jg03pzBBINhg.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/f5IZlqz5TpcNO1fS6huaqoYCL7f4Lmdq2Mu_bqAhk8M.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/fDeZfxsILSZiKpLytoosR79QOwLSjptH6EPIMLGtRNs.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/g90LZAG7TgX-IDiwTI1EnG-uL_vQO6m1VFHA4DXIApM.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/gEptnFlir5bD4zniPqUAZ5QMJV5ADhobh0Q23xGzRF0.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/hVizaECCwLFvhAaKJA1nsuBwbijAqX_S-cAac5uR1gs.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/hpO5TGn3cOj2T6GeYwVbeIcLl_Z8pg0Dx8QgTfOehig.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/irOuHqJY4wXcYF8_TPjfeZKoBC4uFBUHhO02V8XcX00.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/kHPa-qEME5e6APzKRhfrsI-UP1YWK82OKY27JCuF_RE.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/lXMif2hjNDsObimbjgbzgA7-eTVNFSTmpKkXOUtUskM.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/lmBgqclkyy8yqK-C6F5WHa2NYkv2RhrPlCS8XKsWvo8.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/nIR3qplxaNOOV8PUUdvb-iOw6PJ2Q_sHLY1mzXRCKEA.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/nS_oSkRqQDJ6BwQM61SCwpreAnvNJ_7UJy2NFOo6EGI.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ng17POhOjNN0AD3E0qAVSrJTQsb7rVwqEiVHSgAyVSw.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/oLo32o-7yvcRy3QGskutTqR9NMiFWInP00Zp7fkL44Y.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/oQrA2j4wIxXwoENBN4aPBSNmdBWi906e9itj2vn5oMU.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/o_V3FohL8btY4_V-Xrnz-YelrMJgKYUy6_hLD5GnziY.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/pRel8pZjjnKknLYiZ-RF1lEzH3KdQVfLIaldqS9deR4.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/psOuHbhrNuku9lRQkuluBZEiGjp42vq8Dnqueq-FljA.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/q1eyEo2Vi-FLY-ByNhhjxwCz00X8jDquKZ4xZqnUF30.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/rDPLhiRtqPZTOSTMBsSVDAaKUhffubbDArnn9AFDzP4.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/slUkeRAam-NqMWP4jyCyDQS6J1f73plDR645mJSyJ7U.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/tZ2wrDfY4-xJkmWfl-C97L29lj-2yxnMfzxonUcmxvI.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/towpH2-L79xiqcSj1N64RqRCv3inVXo4d_nedxQcarE.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/upzIL4odtL99jdnRzl0DffPTtpIfAq9HPMtA0zzBMKE.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/vEfbP3aAlexgl_ArpgEqm7agv9s-CJbq42qxsDbtJRU.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/vaRpRTk5pzwK0WTbjQDC23DI3WaRCh9gilBD2vbLsso.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/vuFnXMZpnl_7yvI43c5xYRFFHV1zldrQj-zpT6YeVSU.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/vwn8PLZAeS0KK0NKpFLpjxn9Bin_YKM0IqRHSuCoa1M.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/vx_IC6M7hHQ-b5ziSKBP-e0T1Xp98blLvkz7qioa_D0.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/wGLdnn5nSIUwRz2Gv3X_eZx_EXU_twvwP1Km9-CjQyU.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/whEGMeB43VK5_nyIEI7BsdJxWtoI9jEvjo__JaZ0NeE.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/wpYPNmEo6MNQ76rOr5GuVyhVTY7MKedqnShsodWsDq0.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/xmBW8cZP6DR5bdFwTkcaEiyuw9icW0ptxGOaUW1eUzA.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/xtrGvRGicp1q0Bpti3hZbETeGmTO1O7hkZCcA8UKdig.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/yI4M_dWMS9GrVtK4GCMuQbbqPEGT24KJwXP1srGwmIM.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/z2N5mvH2d30JadkrvZFa88EVoq3Gm2PNnKYyhDhyr8Q.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/z5UL5WzXam3xgD8DewINCcxnaIFE4XNXmfQkYKC7bn4.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/zA-IO5G2xufBlj1dVs2kfl1CPNx8Yok-FFrij6AsoJ4.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/zPJIBWFRPnC9BChL5XPVBy7QwS53YmuVV7aLIZ-0l-8.cache +1 -0
- data/spec/rails_app/tmp/pids/server.pid +1 -0
- metadata +456 -2
@@ -53,7 +53,7 @@
|
|
53
53
|
|
54
54
|
DynamicFields.prototype.add = function() {
|
55
55
|
var fields_add;
|
56
|
-
fields_add = $(this._render_insertion('Add'));
|
56
|
+
fields_add = $($.parseHTML(this._render_insertion('Add'), null, true));
|
57
57
|
this.$fields_parent.trigger('dynamic-fields:before-add-into');
|
58
58
|
this.$fields_end.before(fields_add);
|
59
59
|
fields_add.not('script').trigger('dynamic-fields:after-add');
|
@@ -61,7 +61,7 @@
|
|
61
61
|
};
|
62
62
|
|
63
63
|
DynamicFields.prototype.remove = function($element) {
|
64
|
-
var destroy_inputs, fields_item_begin, fields_remove, node, object_id;
|
64
|
+
var all_fields, destroy_inputs, fields_item_begin, fields_remove, index_begin, index_end, node, object_id;
|
65
65
|
node = $element;
|
66
66
|
while ((fields_item_begin = node.prevAll((this._anchor('item-begin')) + ":first"), fields_item_begin.length === 0)) {
|
67
67
|
node = node.parent();
|
@@ -76,7 +76,10 @@
|
|
76
76
|
destroy_inputs = this._render_insertion('Remove').replace(/(["])dynamic_fields_object_id(["])/g, "$1" + object_id + "$2");
|
77
77
|
this.$fields_begin.after(destroy_inputs);
|
78
78
|
}
|
79
|
-
|
79
|
+
all_fields = this.$fields_parent.contents();
|
80
|
+
index_begin = all_fields.index(fields_item_begin);
|
81
|
+
index_end = all_fields.index(fields_item_begin.nextAll((this._anchor('item-begin')) + ", " + (this._anchor('end'))).first());
|
82
|
+
fields_remove = all_fields.slice(index_begin, index_end);
|
80
83
|
this.$fields_parent.trigger('dynamic-fields:before-remove-from');
|
81
84
|
fields_remove.not('script').trigger('dynamic-fields:before-remove');
|
82
85
|
fields_remove.remove();
|
@@ -67,6 +67,22 @@ describe DynamicFieldsFor do
|
|
67
67
|
expect(page).to have_button('Update User')
|
68
68
|
end
|
69
69
|
|
70
|
+
it 'should add fields with clean text' do
|
71
|
+
visit "/users/#{user.id}/edit_with_clean_text"
|
72
|
+
within('.clean-text') do
|
73
|
+
click_link 'Add role'
|
74
|
+
expect(page).to have_content(Array.new(4, 'clean text').push('Add role').join(' '))
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
it 'should remove fields with clean text' do
|
79
|
+
visit "/users/#{user.id}/edit_with_clean_text"
|
80
|
+
within('.clean-text-with-remove-link') do
|
81
|
+
remove_links.last.click
|
82
|
+
expect(page).to have_content(Array.new(2, 'clean text Remove role').push('Add role').join(' '))
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
70
86
|
it 'should deal with turbolinks' do
|
71
87
|
visit "/users/#{user.id}/edit_without_fields"
|
72
88
|
click_link 'Edit'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class UsersController < ApplicationController
|
2
2
|
before_filter :build_resource, only: [:new, :create]
|
3
|
-
before_filter :load_resource,
|
3
|
+
before_filter :load_resource, except: [:new, :create]
|
4
4
|
|
5
5
|
def new
|
6
6
|
3.times{ @resource.roles.build }
|
@@ -0,0 +1,14 @@
|
|
1
|
+
.clean-text
|
2
|
+
= form_for @resource do |f|
|
3
|
+
= f.fields_for :roles, dynamic: true do |rf|
|
4
|
+
clean text
|
5
|
+
|
6
|
+
= f.add_fields_link :roles, 'Add role'
|
7
|
+
|
8
|
+
.clean-text-with-remove-link
|
9
|
+
= form_for @resource do |f|
|
10
|
+
= f.fields_for :roles, dynamic: true do |rf|
|
11
|
+
clean text
|
12
|
+
= rf.remove_fields_link 'Remove role'
|
13
|
+
|
14
|
+
= f.add_fields_link :roles, 'Add role'
|