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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:14:04+00:00 2026-05-12T18:14:04+00:00

One of the components I need for an application I am working on is

  • 0

One of the components I need for an application I am working on is very similar to a CMS. Whereas I allow a user to write their own HTML.

The concept consists of custom tags and blocks.

For example. What i need to do is combine the following at runtime.

<div id="products">
 <module type="products" display="5" />
</div>

<!-- then a block-->

<div class="product" id="product-%[product_id]">
 <img src="%[product_image]" /><br />
 <span class="title"><a href="%[product_url]">%[product_title]</a</span>
</div>

In PHP i would use output buffering for this.

I don’t need the nitty gritty of how to do every piece of this just, how can I output a page using this concept (coming from a database) instead of using the built in rails view.

  • 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-12T18:14:05+00:00Added an answer on May 12, 2026 at 6:14 pm

    If I understand your question correctly, you want to know how to render a string. This is straight out of Rails docs:

      # Renders the clear text "hello world" with status code 200
      render :text => "hello world!"
    
      # Renders the clear text "Explosion!"  with status code 500
      render :text => "Explosion!", :status => 500
    
      # Renders the clear text "Hi there!" within the current active layout (if one exists)
      render :text => "Hi there!", :layout => true
    
      # Renders the clear text "Hi there!" within the layout
      # placed in "app/views/layouts/special.r(html|xml)"
      render :text => "Hi there!", :layout => "special"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In one of the application I need to make sure that UI components will
I'm developing an application in c++. One of the components of the application uses
From web pages like this one, http://www.jsftutorials.net/components/step5.html I understand that the binding attribute in
I'm writing a Java application with GUI using Swing. One of the GUI components
I'm currently working on an application where one component of the application needs to
I've developed a web application in ASP.NET and one of the things the user
I am currently working on an ASP.NET application in VB.NET and one of its
A brief background: I'm working on a web-based drawing application and need to draw
I need multiple STA threads inside my ASP.NET application to use some COM components.
I need to create an application similar to file browser - with opportunity to

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.