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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:24:00+00:00 2026-05-20T12:24:00+00:00

Thank you in advance for your help. I am working on a simple version

  • 0

Thank you in advance for your help.

I am working on a simple version of Groupon’s (www.Groupon.com) “Get Deal by email”.
When you click on “Get Deal by email” on the top of the site you get simple form to fill out and get Groupon deals on you email.

My search is a little difference and I have it as a resource so I can store the email and user location in a Database for later user.

On my layout I properly to my other resources as needed and that works fine. But I want to have the layout “yield” for my Simple Email Request resource too so it is always at the top(hidden or shown by javascript).

I know this might not be the Rails way. Please let me know what you think.

Thank you for your help.

Here is some code:
Just to summarize, what I want to do is display a _form.html.erb view from a new action of a controller(simplealert) in my layout header along with whatever else it I am ing for in the body. Code sample bellow.

<header>here is my problem. I want to load a _form.html.erb from my Simple_alert new method. Of course I want it to save properly as well. This will be similar to the "Get Deal by mail" from groupon.com sometimes I hide and show it. But it is a resource with proper DB fields.
</header>

body>   
<%= yield %> # Here I normally yield for whatever is the main user call. This works fine.
  • 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-20T12:24:01+00:00Added an answer on May 20, 2026 at 12:24 pm

    I’m not sure what exactly you’re looking for, but there is a project called Cells for Ruby on Rails, which allows you to have multiple controllers on a page, or as they put it, ‘partials on steroids’.

    The website is: http://cells.rubyforge.org/

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

Sidebar

Related Questions

Thank you in advance for your help. Background: I have two TableViews (NSArray datasource)
thanks in advance for your help. I am wondering if there is a (design)
Thanks in advance for your help experts. I want to be able to copy
First off, thanks in advance for your help. This issue is driving me nuts.
Greetings and thank you in advance for the help. I created a user control
what is webparts in asp.net? a simple example on webparts. thank you in advance.
Simple JS form validation does not seem to be working in IE. Any help
Thanks in advance for your help. I'm writing a lightweight C# program to write
Hello and thank you in advance, I am trying to create a django form
First, a thank you in advance. Second, this is my first post so apologies

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.