in routes.rb, we can route based on the path. For example, if the path was http://abcd/xyz, we can route based on ''xyz'' but can we route based on ''abcd''?? --~--~---------~--~----~------------~-------~--~----~ 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 that''s something you need to do at the server level, e.g. in your apache config file. On Jun 16, 12:02 am, Niranjan <niru...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> in routes.rb, we can route based on the path. > For example, if the path washttp://abcd/xyz, we can route based on > ''xyz'' but can we route based on ''abcd''??--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I have an action: myapp/new to create a new record in the db. the form calls the create action which, if validation fails, returns the user to myapp/create is there a way to route the user back to myapp/new so they don''t see the create action? Also, is there a default route to use for errors? I want to route (eventually) all errors to an error page. Thanks! -- 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 -~----------~----~----~----~------~----~------~--~---