Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Routing error.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mukesh yadav  
View profile  
 More options Sep 14 2012, 10:00 am
From: Mukesh yadav <ashu.33...@gmail.com>
Date: Fri, 14 Sep 2012 07:00:37 -0700 (PDT)
Local: Fri, Sep 14 2012 10:00 am
Subject: Routing error.

Hi all,
In my Rails app there is a code in which I have passed the two object to
the nested url like this
  u_w_path(u, v)

Now the thing is, It is working fine before but suddenly I am getting a
routing error because of the object "u" cannot be converted to
id(automatically).

It says No route matches {:action=>"show", :controller=>"v",
:id=>#<U:0xaf1f734 "..................}
I have no idea what went wrong with the apps. Please suggest me solutions.

Regards,
Mukesh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Colin Law  
View profile  
 More options Sep 14 2012, 10:55 am
From: Colin Law <clan...@googlemail.com>
Date: Fri, 14 Sep 2012 15:53:45 +0100
Local: Fri, Sep 14 2012 10:53 am
Subject: Re: [Rails] Routing error.
On 14 September 2012 15:00, Mukesh yadav <ashu.33...@gmail.com> wrote:

> Hi all,
> In my Rails app there is a code in which I have passed the two object to the
> nested url like this
>   u_w_path(u, v)

> Now the thing is, It is working fine before but suddenly I am getting a
> routing error because of the object "u" cannot be converted to
> id(automatically).

> It says No route matches {:action=>"show", :controller=>"v",
> :id=>#<U:0xaf1f734 "..................}
> I have no idea what went wrong with the apps. Please suggest me solutions.

Have you got u and v the right way round in the call?

Do lines of code that used to work no longer work or is it just new
lines of code that fail?

If lines of code that used to work no longer work then roll back in
your source control system (git or whatever) till you get to a point
where they work and then see what you changed to make it fail.

If you still can't get it working post the code that is failing, the
full error message, routes.rb, and the result of running rake routes.

Colin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mukesh yadav  
View profile  
 More options Sep 14 2012, 11:08 am
From: Mukesh yadav <ashu.33...@gmail.com>
Date: Fri, 14 Sep 2012 20:37:36 +0530
Local: Fri, Sep 14 2012 11:07 am
Subject: Re: [Rails] Routing error.

Hi Colin,

I did it(roll back to last working commit) but the problem still persisted.
No clue why it is behaving like this.

Regards,
Mukesh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Colin Law  
View profile  
 More options Sep 14 2012, 11:26 am
From: Colin Law <clan...@googlemail.com>
Date: Fri, 14 Sep 2012 16:25:36 +0100
Local: Fri, Sep 14 2012 11:25 am
Subject: Re: [Rails] Routing error.
On 14 September 2012 16:07, Mukesh yadav <ashu.33...@gmail.com> wrote:

> Hi Colin,

Please don't top post it makes it more difficult to follow the thread,
and makes it easy to forget to answer questions - see below.

> I did it(roll back to last working commit) but the problem still persisted.
> No clue why it is behaving like this.

Did you restart the server after rolling back?  You need to restart
for routes.rb to be picked up.
Also see further points below.

You did not answer this question.

>> Do lines of code that used to work no longer work or is it just new
>> lines of code that fail?

>> If lines of code that used to work no longer work then roll back in
>> your source control system (git or whatever) till you get to a point
>> where they work and then see what you changed to make it fail.

>> If you still can't get it working post the code that is failing, the
>> full error message, routes.rb, and the result of running rake routes.

You have not done this.

Colin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mukesh yadav  
View profile  
 More options Sep 14 2012, 11:59 am
From: Mukesh yadav <ashu.33...@gmail.com>
Date: Fri, 14 Sep 2012 21:28:31 +0530
Local: Fri, Sep 14 2012 11:58 am
Subject: Re: [Rails] Routing error.

  yes I restart the server .

You did not answer this question.

yes the code is fine.

>> Do lines of code that used to work no longer work or is it just new
>> lines of code that fail?

>> If lines of code that used to work no longer work then roll back in
>> your source control system (git or whatever) till you get to a point
>> where they work and then see what you changed to make it fail.

>> If you still can't get it working post the code that is failing, the
>> full error message, routes.rb, and the result of running rake routes.

You have not done this.

Ok I got another machine I cloned the code and start the server it is
working in different machine
but not on my machine any idea.
I think may be rails i18n or rails procedure to convert object to id in url
got unstructured any how.
any idea? or something else.

Colin

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »