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

  • Home
  • SEARCH
  • 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 6621471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:16:08+00:00 2026-05-25T21:16:08+00:00

When I was developing my project on my local file I had this line

  • 0

When I was developing my project on my local file I had this line in code which worked correctly:

@json = Location.qty_of_deliv_from(params[:from_rc])
  .qty_of_deliv_to(params[:to_rc])

When I deployd with passenger I get a syntax error on this line which goes avay if I have all the code in the same line:

@json = Location.qty_of_deliv_from(params[:from_rc]).qty_of_deliv_to(params[:to_rc])

Is this a known issue?

  • 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-25T21:16:09+00:00Added an answer on May 25, 2026 at 9:16 pm

    Perhaps your server’s ruby version is different and parses differently?

    In any case, in Ruby, when writing multiline code you typically want to make sure your lines to be wrapped are syntactically incomplete, so as not to confuse the parser, e.g. by using a hanging dot, instead.

    Location.qty_of_deliv_from(params[:form_rc]).
      qty_of_deliv_to(params[:to_rc])
    

    Or you can use the backslash to escape the new line:

    Location.qty_of_deliv_from(params[:form_rc]) \
      .qty_of_deliv_to(params[:to_rc])
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been developing a project and in this project i have designed my
I'm new to Git. Let's say Alice and Bob had been developing their project
I am developing a PHP project and using PDT with XDebug which is working
I'm currently developing a project with XNA that is pulling information (ID, name, file
I'm developing an ASP.MVC 3 project on my local computer where it is located
I am developing ASP.Net project (framework 2.0) on local machine (Windows 7). IIS 7.5
While uninstalling a VS2010 setup project I'm developing which installs a service, I am
I'm developing a project, in which users upload rather large PDF files (up to
I am in the early stages of developing an Azure web project which will
I'm developing a web application using Wicket+Spring+JPA+Hibernate. This is my first project with this

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.