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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:26:42+00:00 2026-06-12T08:26:42+00:00

I have this, when i do rake routes admin_pdf_templates GET /admin/pdf_templates(.:format) {:controller=>admin/pdf_templates, :action=>show} PUT

  • 0

I have this, when i do rake routes

admin_pdf_templates GET /admin/pdf_templates(.:format) {:controller=>”admin/pdf_templates”, :action=>”show”}
PUT /admin/pdf_templates(.:format) {:controller=>”admin/pdf_templates”, :action=>”update”}
DELETE /admin/pdf_templates(.:format) {:controller=>”admin/pdf_templates”, :action=>”destroy”}
POST /admin/pdf_templates(.:format) {:controller=>”admin/pdf_templates”, :action=>”create”}

what will be be path for create action in paths.rb in cucumber.

My paths.rb is
when /create pdf/
admin_pdf_templates_path(:id => @user.id)

above path calls GET method . How do i call POST method in paths.rb in cucumber.

  • 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-12T08:26:43+00:00Added an answer on June 12, 2026 at 8:26 am

    You’ll want to describe the steps the user will have to take in order make the post request rather than explicitly making it.

    For example.

    Given I am on the new item form
    When I fill out the form
    Then I should see the new item. 
    

    You would then define that When step

    fill_in 'Name' :with => 'My Name'
    click_button 'Submit'
    

    The click is what would trigger the post.

    If there is no interface to test this interaction then perhaps you should not be using cucumber.

    If you insist on making the post request without a user triggering it this topic looks similar.

    How do you POST to a URL in Capybara?

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

Sidebar

Related Questions

I have this in my rake routes: {:subdomain=>/m/, :action=>destroy, :controller=>mobile/home} mobile_disclosures GET /disclosures(.:format) {:subdomain=>/m/,
I have the following when I do rake routes next_post /users/next_post/:index(.:format) {:controller=>users, :action=>next_post} then,
In my config/routes.rb I have: post portal_plan_document/update rake routes confirms this: $ rake routes
Whenever I run a rake command (i.e. rake routes ) I get this error:
In my routes.rb I have this to add settings as an additional action to
I have this setup in my routes: namespace :admin do resources :posts end so
I have an engine, with this routes file: Rails.application.routes.draw do resources :comments, :controller =>
In my rake routes I get: project_todos GET /project_todos(.:format) project_todos#index POST /project_todos(.:format) project_todos#create new_project_todo
I have nested resources like this in my routes.rb - ( my rake:routes gist
I have routes like this: map.namespace 'prepayments', :path_prefix => '/:locale/prepayments' do |prepayment| prepayment.root :controller

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.