Hi, sorry if I'm repeating is email or something, Cinnamon crashed as I was sending the mail and the result in the sent folder was completely empty, so I'm just gonna have to write it all over
again, wee!

Anyways, my question was about new camping and if we still have the ability to mount multiple smaller apps as the bigger app. I'm creating an app to host my blog and a bunch of other stuff using the new Camping version that comes with Mab + Riak. I want to be able to divide each part of the website into it's own app, but I still want them to share some things, like the public/ folder so that they have the
same look. I also want them to share Riak node which they will do.

Let's say that my project structure looks something like this

app/
        app.rb
        blog.rb
        forum.rb        # Not actually having a forum though, probably
        public/
                Style.css
                Coolpic.png
        blog/
                controllers.rb
                views.rb
        forum/
                controllers.rb
                views.rb
        config/
                ripple.yml
                foo.yml

First off, what is the correct command to mount these parts, and how does it work? The Camping site says:
camping apps/**/*.rb.

I'm not sure what it does though, and if it would still work in the new version.

One thing that I would like, would be if all sub-apps for app.rb like blog or forum inherited some of the settings of app.rb. I'm using rack_csrf for csrf protection (obviously) and I find it kind of strange to have to set
it up for each and every app instead of just app.rb.

Another thing, how do I make app.rb the root of the entire site so it's mounted at foobar.com and not foobar.com/blog like the other ones should be mounted. Also, how do I link between the different apps? Like how do I make app link to the blog or a part of the forum link to a certain part of app?

I guess that was all the questions I had about this. I'm starting to feel like this would be the ultimate
way to build a larger Camping app :)

Cheers!

-Isak Andersson

_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to