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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:27:08+00:00 2026-05-27T00:27:08+00:00

I want to use link_to to create a new article and set the article’s

  • 0

I want to use link_to to create a new article and set the article’s name.

This is what I’ve tried:

<%= link_to 'Create A New Article called Edward', articles_path, :name =>'Edward', :method => :post %>

It creates a new article, but it is blank.

<%= link_to 'Create A New Article called Edward', articles_path(:name =>'Edward') , :method => :post %>

does exactly the same.

Thanks for any 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-27T00:27:08+00:00Added an answer on May 27, 2026 at 12:27 am

    It looks like you need to nest it in an :articles hash since your controller is likely trying to access params[:article] to get the values (you would think that by putting it within the articles_path(...) part this would happen automatically, but it doesn’t).

    articles_path(:article => {:name => "Edward"})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to Rails, and I'm trying to use the link_to helper to create
I want to use jQuery to create a new div on the page when
Hi i am following this tutorial http://www.vogella.de/articles/AndroidGestures/article.html i want to create an application in
I want use this 1 for using Bar code or QR code scanner. I
I'm designing the template for my new JSF2.0 App and I want to use
I want to create a button with the help of the button_to method to
I want to create a new Hardlink with the PowerShell Community Extensions PSCX commandlet
I want to create a new application in Spring MVC, before start it, I
I have created a baseview project in xcode4. I want to use a new
let's say that I want to create a new string during a for loop,

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.