In some cases you may want the Rails root without having to load Rails. Dennis Dennis You can use: Rails. Irfan 4, 6 6 gold badges 27 27 silver badges 45 45 bronze badges.
Amit Amit 7 7 bronze badges. Please delete this answer, it is just noise, does not add anything to the question.
Please delete this answer, it is just noise, does not add anything to the question and it is poorly formatted. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Does ES6 make JavaScript frameworks obsolete? Linked pull requests. Copy link. Would love a cop that specifies to always use syntax: Rails. Seems reasonable to me.
Add LetSetup cop. Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. All rights reserved. Lessons See the full list of screencasts to learn from.
Guides Tutorials to help you setup Rails on your development and deploy to production. New to Ruby on Rails? New Start learning Ruby on Rails from scratch with our free Beginner tutorial. Refactoring Rails Expert advice on keeping Rails apps organized and fast. Apps Hatchbox. Ask Question. Asked 4 years ago. Active 8 months ago. Viewed 4k times. I see that Rails. So I've tried if File. Improve this question. The whole point of Pathname is to provide an abstraction that provides cross-platform paths so your code can work on that silly OS that got everything backwards.
Add a comment. Active Oldest Votes.
0コメント