[OSM-dev] Where is the code that checks if the user is logged in before serving the request?
Erik Johansson
emj at kth.se
Fri Nov 18 10:25:42 GMT 2011
On Fri, Nov 18, 2011 at 10:59, Alexandru <icidrop at yahoo.com> wrote:
> I want to add some more pages behind the authorization feature. Would
> someone please help me with that?
>
You might want to read up on MVC
http://www.google.com/search?q=introduction+to+MVC
And on Ruby
http://www.google.com/?q=ruby+introduction
Then take the User model and change it until it's broken, the first 20
lines in the controller are specifically interesting:
https://github.com/openstreetmap/openstreetmap-website/blob/master/app/controllers/user_controller.rb
https://github.com/openstreetmap/openstreetmap-website/blob/master/app/views/user/account.html.erb
--
/emj
More information about the dev
mailing list