I just deployed my app to our webserver and I am getting the Routing
error: Recognition failed for "/ICA/index/13"
But I do not get the error on my localhost.
Note: I am not getting any errors while accessing any other pages, and
yes ICA/index/13 exists
Code
---------
#.../page/list
<%= link_to ''Preview'',{ :controller => "ICA",
:action => ''index'', :id
=> page},:popup => true %>
class ICAController < ApplicationController
def index
...
end
I haven''t made any changes to my route.rb
Like I said, all is well on localhost: http://localhost:3002/ICA/index/
13
But I get the error on the webserver: http://library.oregonstate.edu/
ICA/index/13
Please help.
Thanks in advance -K
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
I think the problem is in the popup call - but I don''t know how to fix it. Help please. On Feb 14, 12:42 pm, "Kim" <Kim.Gri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I just deployed my app to our webserver and I am getting the Routing > error: Recognition failed for "/ICA/index/13" > But I do not get the error on my localhost. > Note: I am not getting any errors while accessing any other pages, and > yes ICA/index/13 exists > > Code > --------- > #.../page/list > <%= link_to ''Preview'',{ :controller => "ICA", :action => ''index'', :id > => page},:popup => true %> > > class ICAController < ApplicationController > > def index > ... > end > > I haven''t made any changes to my route.rb > > Like I said, all is well on localhost:http://localhost:3002/ICA/index/ > 13 > > But I get the error on the webserver:http://library.oregonstate.edu/ > ICA/index/13 > > Please help. > > Thanks in advance -K--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
bump On Feb 14, 2:58 pm, "Kim" <Kim.Gri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I think the problem is in the popup call - but I don''t know how to fix > it. Help please. > > On Feb 14, 12:42 pm, "Kim" <Kim.Gri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > I just deployed my app to our webserver and I am getting the Routing > > error: Recognition failed for "/ICA/index/13" > > But I do not get the error on my localhost. > > Note: I am not getting any errors while accessing any other pages, and > > yes ICA/index/13 exists > > > Code > > --------- > > #.../page/list > > <%= link_to ''Preview'',{ :controller => "ICA", :action => ''index'', :id > > => page},:popup => true %> > > > class ICAController < ApplicationController > > > def index > > ... > > end > > > I haven''t made any changes to my route.rb > > > Like I said, all is well on localhost:http://localhost:3002/ICA/index/ > > 13 > > > But I get the error on the webserver:http://library.oregonstate.edu/ > > ICA/index/13 > > > Please help. > > > Thanks in advance -K--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
This is what my dev logs have to say:
Rendering /var/www/ica/html/trunk/public/../config/../vendor/rails/
actionpack/lib/action_controller/templates/rescues/layout.rhtml (404
Page Not Found)
Processing Base#index (for 128.193.163.30 at 2007-02-14 16:10:25)
[GET]
Session ID: 85438c4bf9c30288c64258c6fbc4c6ed
Parameters: {} #why no parameters??
ActionController::RoutingError (Recognition failed for "/ICA/index/
112"):
/vendor/rails/actionpack/lib/action_controller/routing.rb:522:in
`recognition_failed''
/vendor/rails/actionpack/lib/action_controller/routing.rb:512:in
`recognize!''
/vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch''
/var/www/ica/html/trunk/public/dispatch.cgi:10
On Feb 14, 3:23 pm, "Kim"
<Kim.Gri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> bump
>
> On Feb 14, 2:58 pm, "Kim"
<Kim.Gri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > I think the problem is in the popup call - but I don''t know
how to fix
> > it. Help please.
>
> > On Feb 14, 12:42 pm, "Kim"
<Kim.Gri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > > I just deployed my app to our webserver and I am getting the
Routing
> > > error: Recognition failed for "/ICA/index/13"
> > > But I do not get the error on my localhost.
> > > Note: I am not getting any errors while accessing any other
pages, and
> > > yes ICA/index/13 exists
>
> > > Code
> > > ---------
> > > #.../page/list
> > > <%= link_to ''Preview'',{ :controller =>
"ICA", :action => ''index'', :id
> > > => page},:popup => true %>
>
> > > class ICAController < ApplicationController
>
> > > def index
> > > ...
> > > end
>
> > > I haven''t made any changes to my route.rb
>
> > > Like I said, all is well on
localhost:http://localhost:3002/ICA/index/
> > > 13
>
> > > But I get the error on the
webserver:http://library.oregonstate.edu/
> > > ICA/index/13
>
> > > Please help.
>
> > > Thanks in advance -K
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Kim wrote:> I just deployed my app to our webserver and I am getting the Routing > error: Recognition failed for "/ICA/index/13" > But I do not get the error on my localhost. > Note: I am not getting any errors while accessing any other pages, and > yes ICA/index/13 exists > > Code > --------- > #.../page/list > <%= link_to ''Preview'',{ :controller => "ICA", :action => ''index'', :id > => page},:popup => true %> > > class ICAController < ApplicationController > > def index > ... > endRails usually assumes that your controller follow a naming convention like: FooController Would would be fetched in urls with the text: foo You have ICAController and are trying to get it with the text "ICA". I know linux is more case concious than windows, so maybe that is the problem. Try calling your controller "IcaController" and calling it with "/ica/index/12" -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks - that fixed it. I moved from windows to unix so I guess the naming convention got me in the switch. On Feb 14, 4:34 pm, Alex Wayne <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Kim wrote: > > I just deployed my app to our webserver and I am getting the Routing > > error: Recognition failed for "/ICA/index/13" > > But I do not get the error on my localhost. > > Note: I am not getting any errors while accessing any other pages, and > > yes ICA/index/13 exists > > > Code > > --------- > > #.../page/list > > <%= link_to ''Preview'',{ :controller => "ICA", :action => ''index'', :id > > => page},:popup => true %> > > > class ICAController < ApplicationController > > > defindex > > ... > > end > > Rails usually assumes that your controller follow a naming convention > like: > > FooController > > Would would be fetched in urls with the text: > > foo > > You have ICAController and are trying to get it with the text "ICA". I > know linux is more case concious than windows, so maybe that is the > problem. > > Try calling your controller "IcaController" and calling it with > "/ica/index/12" > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---