Execution of Embedded ruby code

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have ruby code written for user add in DB. 
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
html ruby
add a comment |Â
up vote
0
down vote
favorite
I have ruby code written for user add in DB. 
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
html ruby
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have ruby code written for user add in DB. 
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
html ruby
I have ruby code written for user add in DB. 
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
html ruby
asked Jun 28 at 5:29
Akki
113
113
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password