Displaying 3 results from an estimated 3 matches for "chanezon".
Did you mean:
cabezon
2005 Dec 15
4
Acts_as_tree and routing
I''ve got an acts_as_tree structure which I want to be able to represent
in the URL, with one field identified as the url component. In other
words, if I''ve got this:
def self.up
create_table :nodes do |t|
t.column :parent_id, :integer
t.column :tag, :string
end
end
and
class Node < ActiveRecord::Base
acts_as_tree
end
and what I want the urls to be is something
2006 Jul 07
0
Re: url parameter :id with slash (/) failed to route
...make rails fail to route.
>> (apache fail, webrick works fine somehow)
> Rails routes really don''t like to do that. I would recommend coming
up
> with a diiferent way to handle those id''s that doesn''t require a
slash.
The solution is here:
http://blog.chanezon.com/articles/2005/05/20/rails-tip-create-a-route-
with-an-arbitrary-number-of-parameters
==
=mmell
2006 Jan 11
2
Handling ''recognition failed''?
How can I handle ''recognition failed'' errors so they
act like typical 404 errors? By displaying a message,
page and/or redirecting.
thanks
csn
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com