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 8686433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:50:54+00:00 2026-06-12T22:50:54+00:00

I have a dialog popup comes by model name . For example, <%= link_to

  • 0

I have a dialog popup comes by model name. For example,

<%= link_to pro_generic_lookup_data_path("Enr::Rds::Question2009", format: :js), data: {remote: true}, id: "question_picker" do %>
      <%= f.label :Question, class: 'question_label'%>
      <%= f.text_field :Question, class: 'question_label'%>
<% end %>

I have the three section like this. I am getting the value in javascript and insert into the fields inside the link_to method.

But the last section, would get the question_id and match the text in answer_column. The answer_column has the values of the Model's name like enr_rds_question_t. So, I should get this text and change into the model name like Enr::Rds::Question and make the link_to like to open the dialog popup box for answers.

I am new to RoR, So apologize for that am not able to explain clearly.

Thanks.

  • 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-12T22:50:55+00:00Added an answer on June 12, 2026 at 10:50 pm

    crude way though

    'enr_rds_question'.split('_t')[0].split('_').collect{|s| s.camelize}.join("::").constantize
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dialog - <div data-role=dialog id=msg-popup> <div data-role=header> <h1>Notification</h1> </div> <div data-role=content
I have a jquery dialog as follows - <div data-role=dialog id=msg-popup> <div data-role=header> <h1>Notification</h1>
How to get the parent page name of the modal popup dialog? I have
I have a dialog popup to indicate how long I want an activity to
I want it to have a popup dialog javascript box. Instead of a new
I have a JInternalFrame window that needs to popup a modal dialog box when
I have dialog created like this $('#add_error').click(function(e) { $('<div>') .load('/someaction/format/html/') .dialog({ title: 'Some title',
I have a really odd behavior here: I created a little popup dialog in
I am using jquery dialog() so a popup comes up. I want to call
I have a dialog popup with a textearea, two listboxes and one button. By

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.