Hi guys Following little problem. Am using tinymce for a little wysiwyg plugin. it comes with an imagemanager module, but I get the following error when trying to use it: Recognition failed for "/javascripts/tiny_mce/plugins/imanager/imanager.php There is obviously a little php program it wants to pop up but the rails routing is screwing the process... I am running lighttpd and I do have php installed - any ideas how I can get the php script to run? Regards Pieter
I would like to create a route as follow: map.connect ''user/:user/profile'', :controller => "account", :action => "profile", :id => some_id With this, I''m assuming when user put following address in the address bar, http://localhost/user/zeeg/profile then it redirects to http://localhost/account/profile/1 (e.g. 1 is user''s internal id) What I don''t understand is how to convert user name to user id. -- 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 -~----------~----~----~----~------~----~------~--~---
Set your route like this:
map.connect ''user/:user/profile'', :controller =>
"account", :action
=> "profile"
Write your profile action like this:
def profile
@user = User.find_by_name(params[:user])
..
end
The ID isn''t used at all. You must make your user name be unique for
this to work correctly.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---