Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9198617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:19:41+00:00 2026-06-17T22:19:41+00:00

I make a loop to show my options and need make a link or

  • 0

I make a loop to show my options and need make a link or buttom to pass the value of my radio buttom to my link or buttom but i dont know how i get this value, please someone can help, my loop whit my journals is:

<div id="add_post">
<h1>Escolha o Jornal que deseja adicionar:</h1>
 <ul>
<% current_user.journals.each do |journal| %>
        <li><%= radio_button_tag 'journal',journal.id %><%= journal.name %></li>
<%end%>
 </ul>
<%= link_to "Adicionar",add_post_complete_journal_path(HEREEE),:remote=>true %>
</div>

Where say HEREEE is where i want appear the options choised, please help me i thanks very very mutch

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:19:42+00:00Added an answer on June 17, 2026 at 10:19 pm

    You can use JS/Jquery to achieve the same. Just give a name to all radio buttons like “myradiobutton”. Then get the value of selected radio button using Jquery and pass it via an AJAX call.

    Something like:

    var selected_value = $("input[name='myradiobutton']:checked").val();
    
    $.ajax({
        url: "<%= add_post_complete_journal_path %>",
        data: {selected_val:selected_value},
        success: function(data){
          // Do something after success
        }
    })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a sort of slide show. For this I need to
I want to make a GUI for my device to show the value of
I have this ecl-make.lisp: (asdf:oos 'asdf:compile-op :stumpwm) (defun system-objects (system) (loop for component in
i need to show images from sqlite database into gridview or gallery view. this
I'm trying to make a loop so that a user can enter a number,
I wrote a quick for loop to make a series of NQQ plots in
I wish to make a nested for loop in order to process some files.
When does it make sense to use Loop fission/distribution if I am compiling for
How do you Make A Repeat-Until Loop in C++? As opposed to a standard
After trying to make a while(bool) loop and it failing because I couldn't see

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.