Re: [Rails] bootstrap not working in 6.0.2

2019-12-21 Thread McNeal Maddox
Not sure about 6.0.2 (I'm still on 5.2), but can you post the Bootstrap configuration in your Webpacker.yml file? It's not clear how you've set up Bootstrap for your project (sharing the view code isn't as helpful). On Fri, Dec 20, 2019, 10:34 PM fugee ohu wrote: > I pasted in code from https:/

Re: [Rails] How do I group and order by a model without loosing includes() method benefits

2019-06-06 Thread McNeal Maddox
Have you tried adding a 'where' condition to your query? E.G., relation = Project.includes(:bids, :user).references(:users, :bids).where(bids > 0).sort.reverse On Thu, Jun 6, 2019 at 4:06 AM Arup Rakshit wrote: > I have a Project and Bid model. > > Project has_many :bids > Bid belongs_to projec

[Rails] Re: Unable to run "system" tests in Rails 5.2 when using WSL (Windows Subsystem for Linux)

2019-01-13 Thread McNeal Maddox
I'm using WSL for Rails system tests on 5.1 with rspec/capybara/selenium and ran into a similar issue. Instead of /usr/bin/chromium-browser, my process initiating chrome was at /usr/local/bin/google-chrome. I was able to resolve the error by creating a symlink to chrome.exe on my Windows file