Jason
2011-May-11 13:23 UTC
Help save my marriage ... correct route, so enable MVC logic v''s should be regular file, trying to send it
Hi All, I''ve been up until the small hours for the past couple of night trying to get my Rhodes navigation working! In essence I have the following in the root index.erb <li> <a href="<%= url_for :controller => :Model, :action => :do_Action %>">Model</a> </li> <li> <a href="<%= url_for :controller => :Model2, :action => :do_Action2 %>">Model2</a> </li> However, Model and Model2 behave differently, thus: Extract from rholog.txt ... HttpServer| Decide what to do with uri /app/Model/do_Action HttpServer| Uri /app/Model/do_Action is correct route, so enable MVC logic ... HttpServer| Decide what to do with uri /app/OtherModel/do_OtherAction HttpServer| Uri /app/OtherModel/do_OtherAction should be regular file, trying to send it ... resulting in ... HTTP/1.1 404 Not Found ... So my question really boils down to what does the framework use to decide whether to treat the request as either a correct route therefore invoking the MVC logic or as a regular file, which will never be found as do_OtherAction doesn''t exist! Many thanks in advance, Cheers, Jason -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
News Aanad
2011-May-11 15:54 UTC
Re: Help save my marriage ... correct route, so enable MVC logic v''s should be regular file, trying to send it
which tool you are using to develop Rhodes applications? On Wed, May 11, 2011 at 6:53 PM, Jason <jason.mcneil.mca-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>wrote:> Hi All, > > I''ve been up until the small hours for the past couple of night trying > to get my Rhodes navigation working! > > In essence I have the following in the root index.erb > > <li> > <a href="<%= url_for :controller => :Model, > :action => :do_Action %>">Model</a> > </li> > > <li> > <a href="<%= url_for :controller => :Model2, > :action => :do_Action2 %>">Model2</a> > </li> > > However, Model and Model2 behave differently, thus: > > Extract from rholog.txt ... > > > HttpServer| Decide what to do with uri /app/Model/do_Action > > HttpServer| Uri /app/Model/do_Action is correct route, so enable MVC > logic > > ... > > HttpServer| Decide what to do with uri /app/OtherModel/do_OtherAction > > HttpServer| Uri /app/OtherModel/do_OtherAction should be regular file, > trying to send it > > ... resulting in ... > > HTTP/1.1 404 Not Found > > ... > > So my question really boils down to what does the framework use to > decide whether to treat the request as either a correct route > therefore invoking the MVC logic or as a regular file, which will > never be found as do_OtherAction doesn''t exist! > > > Many thanks in advance, > Cheers, > Jason > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.