ok,

I figured out enough to do what I want to do.

I made a very tiny change to desert_routes.rb:

resources :users, :member_path => '/usr/:id', :nested_member_path => '/
usr/:user_id', :member => {

Then I added 1 line to routes.rb:

  map.connect '/*pkey', :controller => 'posts', :action =>
'pkey_show', :conditions => { :method => :get }

After coding up .pkey_show() and adding a template for it,
I am happy.

Now, if I go to this URL:

  http://localhost:3000/abc123xyz

I see a post (or not) rather than a user.

--Audrey

--

You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=.


Reply via email to