ruby on rails - Hiding Edit button in active scaffold without excluding the update action -
i want hide edit button without excluding :update action. creating custom edit button shown depending on condition record, using inbuilt edit functionality. excluding action, removes capability use edit in custom area. please suggest
after generated controller (including :update action), remove button app/views/<controller>/<page>.html.erb file(s).
note: in these same files can add custom button when finished.
Comments
Post a Comment