mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-05 23:20:19 +00:00
1 line
1.9 KiB
JSON
1 line
1.9 KiB
JSON
[{"user_id": 26414, "stars": [], "topic_id": 37508, "date_created": 1306840374.4632051, "message": "How i can change dynamicly my root_path? In my app root_path depends on user session (logged or not). How to implement it? I guess i should look somethere in middleware, right?", "group_id": 447, "id": 1236841}, {"user_id": 26414, "stars": [], "topic_id": 37508, "date_created": 1306840995.177994, "message": "It definitly would work, but it doesn't seems native solution :(", "group_id": 447, "id": 1236866}, {"user_id": 31563, "stars": [], "topic_id": 37508, "date_created": 1306840810.1672511, "message": "I did something like this by checking the users logged in status at the root controller action and doing a redirect to where I want logged in users to go. Does this make sense?", "group_id": 447, "id": 1236861}, {"user_id": 31563, "stars": [], "topic_id": 37508, "date_created": 1306851706.483861, "message": "I don't think you'll find a native solution - if by native you mean already built into Rails. The root path is the default path for the application - not for specific users. What you're looking to do can be accomplished with 2-3 lines of code. Any reason why a few lines in the root controller/action isn't better than installing a plugin or hacking the framework? I'm open to suggestions and comments :)", "group_id": 447, "id": 1237752}, {"user_id": 32812, "stars": [], "topic_id": 37508, "date_created": 1306854916.6323481, "message": "box in production would be setup the exact same way with shared data mounted in the same place", "group_id": 447, "id": 1238212}, {"user_id": 32812, "stars": [], "topic_id": 37508, "date_created": 1306854883.7198989, "message": "@lehisanchez I'm with you. there is nothing native about accessing data outside of the application. personally I'd even symlink whatever data into the app tree and use Rails.root. though any", "group_id": 447, "id": 1238201}] |