Search code examples
ruby-on-railscontent-management-systemblogsmodelsnestacms

Is it possible to achieve following with Rails (+ Nesta): myapp.com/blog/1/post/4?


I am trying various CMS for current project and Nesta looks interesting. I wonder though, how (if it is at all possible) one would model an app, where multiple users can create blogs via Nesta integrated into an existing Rails app?

I guess, I have to mount Nesta via Rack, but how to make it so that there is a possibility for each user to start a new blog?

Smth like: http://myapp.com/blog/1/post/4

would be really great.

How do I achieve this?

Thanks a log

P.S. I am not married to Nesta (although it looks nice).


Solution

  • I don't know about Nesta, but to do some URLs like that, you should look at nested resources : http://guides.rubyonrails.org/routing.html#nested-resources.