I have an application where users created ‘boards’
I have had to change the name of the website and now users create ‘walls’.
Currently I have the following url’s:
http://mysite.com/boards
http://mysite.com/boards/i/edit
Is there a way to alias the name ‘boards’ to ‘walls’ so my URL’s will be as follows:
http://mysite.com/walls
http://mysite.com/walls/1/edit
etc without having to change the name of the table, models, and code?
routes.rb
resources :boards
I would also like to alias the paths if possible:
new_board_path would still be valid even if resources are written as follows:
resources :walls, :controller => :boards
Thanks
Try this: