0

I have ruby code written for user add in DB. User Add page in HTML

User Add Code :

`<h1>New User Group</h1>

<%= f.label :name, 'Name:' %>
<%= f.text_field :name, :class => 'user_group_input' %>

<%= f.label :description, 'Description:' %>
<%= f.text_area :description, :cols => 30, :rows => 5, :class => 'user_group_input'%>

  • permission.id} -%>
  • Enabling.

    Cancel

    $j(document).ready(function() {
    $j('#help').click(function(){
      $j('#dialog').dialog({ width: 500 , height: 200, title: 'CPNI Help' });
      });
    $j('.ui-state-default').hover(
      function(){ $j(this).addClass('ui-state-hover'); },
      function(){ $j(this).removeClass('ui-state-hover'); }
    );
    

    }); `

    How can I execute the code in CLI passing the "username" and select required privileges (checkbox in image). Thanks in advance.

    Actions : 1. Enter the username : (In Name Box) 2. Select the required check box 3. Execute the Create Function

    Your Answer

    By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

    Browse other questions tagged or ask your own question.