How to create Multi-User webapplication?

I’m kinda nuby! and i just want to know how to create a Multi-User Web
application, where a person can register and can have his own subdomain
for a blog… where people can view and visit it…

Go learn ruby and rails first. Start small. To do this you need
extensive knowledge of teh framework to write an application, plus lost
of knowledge of the server you want to deploy to, so you can setup up
those rewrite rules. Learn the framework, write smaller applications,
and learn more about what you want to deploy to.

Chris C. wrote:

Go learn ruby and rails first. Start small. To do this you need
extensive knowledge of teh framework to write an application, plus lost
of knowledge of the server you want to deploy to, so you can setup up
those rewrite rules. Learn the framework, write smaller applications,
and learn more about what you want to deploy to.


I already create a blog, but it is limited only to me… i want a blog
that anybody can register, if you know a tutorial about it… can you
give me link… Thanks

Try this link:
http://wiki.rubyonrails.org/rails/pages/LoginGenerator

View this message in context:
http://www.nabble.com/How-to-create-Multi-User-webapplication--tf1876211.html#a5130670
Sent from the RubyOnRails Users forum at Nabble.com.

Ok, first you need support for many blogs. Create a blogs table in you
database, with maybe some setting you might want, and a user_id field.
Also, edit your posts table to have a blog_id column. Now create a blog
model. It will have two declarations, has_many :posts, and belongs_to
:user. The post model should have a belongs_to :blog declaration, and
the user model (which you will create in the next step) will have a
has_one :blog declaration.

Next, you need an authentication system. I reccommend “Acts As
Authenticated”. There are lots of good tutorials on it, just google
them. You will want to set it up so users can edit their own blogs, and
see other peoples, should be pretty easy.

Next, set a route that is something like:
map.connect ‘/:username’, :controller => ‘blog’, :action => ‘showblog’
Have the ‘showblog’ action find blogs by username.

Now, heres the tricky part where you are oon your own. Figure out a
rewrite rule that maps username.domain.com to domain.com/username. Then
you are pretty much done.

I already create a blog, but it is limited only to me… i want a blog
that anybody can register, if you know a tutorial about it… can you
give me link… Thanks

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs