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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T08:40:27+00:00 2026-05-21T08:40:27+00:00

I am trying to use Simplemodal as a pop up box on an index

  • 0

I am trying to use Simplemodal as a pop up box on an index page and put a form to add a new user inside it. It’s not working, says there is an undefined method. How do I make this work? Does it have to do with :remote?

EDIT – Here’s some code to hopefully explain a little better – from index.html.erb

<div id='basic-modal'>
   <input type='button' name='basic' value='Demo' class='basic'/>
</div>
   <!-- modal content -->
<div id="basic-modal-content">
      <%= render 'form' %>
</div>

My form is the standard scaffold form, my Client model has a place to add some basic information about a client. My controller is the standard controller that is generated with scaffold, and my application.html.erb adds the required .js files. When I take the

<%= render 'form' %>

out and put in just plain text, it works just fine. Does that help?

  • 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-05-21T08:40:27+00:00Added an answer on May 21, 2026 at 8:40 am

    Although I haven’t found the answer to using simplemodal for a modal box, I found this tutorial at Nettus which uses modalbox and facebox:

    http://net.tutsplus.com/tutorials/ruby/how-to-build-an-unobtrusive-login-system-in-rails/

    With a few changes for rails 3, this helped me put a form inside a modal box with no problems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having issues trying to append dynamically created html inside a SimpleModal box (OSX
I'm trying to use the simple modal jquery library on a page and the
i'm trying use facebook API to upload photo in my fan page. I downloaded
I'm trying use self-signed certificate (c#): X509Certificate2 cert = new X509Certificate2( Server.MapPath(~/App_Data/myhost.pfx), pass); on
I'm trying to use jQuery SimpleModal Confirm to show a Yes/No confirmation when a
I am trying to use simplemodal to have modal popups with text in wordpress
Hi I am a jquery newbie and trying to use the simplemodal plugin. Before
I am trying use the new server side plug-in feature for TFS 2010. (I
I am trying to use the SimpleModal plugin for jquery to load a popup
I am relatively new to CMake, and I'm trying use the boost asio library

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.