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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:45:50+00:00 2026-06-15T02:45:50+00:00

I appreciate that the answer to this question can be complex and include other

  • 0

I appreciate that the answer to this question can be complex and include other languages such as jquery,css etc, but i am just looking to get some pointers in the right direction as this is the first time i am trying something this complex

I am building a small recipe app and would like to for example return a link to a recipe and upon clicking take me to the dedicated page for that recipe, but for every recipe, so each recipe will display on a page of its own. This is a very basic example but i can for example return results in a list

<% @desserts.each do |r| %>
<p><%= link_to r.dish_name %></p>
<ul>
<li>Country of Origin&nbsp;<% if r.country %><%= r.country.name %><br></li><% end %>
<li>Category <%= r.category %></li>
<li>Difficulty<%= r.difficulty %></li>
<li>Prep Time<%= r.preperation_time %></li>
<li>Ingredient List<%= ingredient_names(r.ingredients) %></li>
<li>How to prepare<%= preperation_steps(r.preperations) %></li>
<li><%= image_tag r.avatar.url(:thumb)%></li>
</ul>

Does anyone have any resources that could help me, or places i can look for examples. Pointers would be appreciated, just to get me started..

Thank you

  • 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-15T02:45:51+00:00Added an answer on June 15, 2026 at 2:45 am

    Start a new rails app, just for learning some tricks:

    rails new playground .
    cd playground
    

    Generate a scaffold for an example recipe model (don’t worry that the fields don’t all match your real app – just for learning):

    rails g scaffold Recipe dish_name:string country:string category:string difficulty:integer preparation_time:integer
    

    Take note of the files it generates. You’ll want to be able to find the model, views, and controller files again shortly.

    Now, migrate the db and run the app:

    rake db:migrate
    rails s
    

    If you click through and add a few dummy recipes, you should see that the behavior is similar to what you’re asking. There’s a table with a list of recipes, and clicking on links to get to the detailed view and/or the editor for that object.

    So, you now have sample code to follow. Look at the simple interactions recipe.rb model file, the recipes_controller.rb file, and the recipes/ directory under views/. Run rake routes if you’re not sure which controller action or view template corresponds to any given url path.

    This is pretty fundamental stuff, so if you’re still confused at that point you need to spend some time reading a book on Rails 3 and actually work through its examples.

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

Sidebar

Related Questions

This is SQL Server question but I would appreciate the answers form other DBMS
Ok, If you can answer this question, you deserve the nobel peace prize. Anyways,
Note - I will really appreciate a quick and complete answer to this question.
My answer to this question would be no. But my coworkers disagree. We're rebuilding
I usually see this question asked the other way, such as Must every ivar
I have asked a question like this before, and the answer was great but
I wasn't able to find a question/answer that covers this fully hence why I
UPDATE : I do appreciate don't want that, want this instead suggestions. They are
(Let me begin by saying that a) I appreciate this is the wrong place
Please see below: I tried using Absolute layout, but that's deprecated. I appreciate your

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.