Execution of Embedded ruby code

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












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







    share|improve this question























      up vote
      0
      down vote

      favorite












      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







      share|improve this question





















        up vote
        0
        down vote

        favorite









        up vote
        0
        down vote

        favorite











        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







        share|improve this question











        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









        share|improve this question










        share|improve this question




        share|improve this question









        asked Jun 28 at 5:29









        Akki

        113




        113

























            active

            oldest

            votes











            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f452348%2fexecution-of-embedded-ruby-code%23new-answer', 'question_page');

            );

            Post as a guest



































            active

            oldest

            votes













            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes










             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f452348%2fexecution-of-embedded-ruby-code%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)