Re: [Rails] modal dialog box

2018-10-20 Thread Greg Navis
You can pre-render the modal with a confirmation form. When clicking "Add to cart" you can update the form with the ID of the product being added and show the modal. When the user submits the form it'll send the right product ID to the server. Best Greg -- You received this message because you

Re: [Rails] jeykll ?

2018-10-20 Thread Greg Navis
One option is to create an independent script that would output data to consume by Jekyll (e.g. Markdown files). Another option is to use plugins although. I haven't used them personally but it seems they might help. Best Greg -- You received this message

[Rails] jeykll ?

2018-10-20 Thread Joe Guerra
ok, I found this nice site on github using jeykll [static site generator]. I started to mess around with it, but I'm wondering if I can use it to run some simple ruby scripts. Or I might have to pull some data in from wikipedia using some sort of javascript api. Thanks, Joe -- You received

Re: [Rails] modal dialog box

2018-10-20 Thread Joe Guerra
No, I have an add to cart button, and I'd like them to confirm their action with a modal dialog box and if yes - save the record to the table, if no- do nothing. [and I can also use the dialog to display some info]. On Saturday, October 20, 2018 at 8:13:08 AM UTC-4, Walter Lee Davis wrote: > >

Re: [Rails] Test coverage in Rails apps

2018-10-20 Thread Rob Zolkos
In development run your tests with the DISABLE_SPRING=1 flag before the test command and see if you see a difference in coverage. On Sun, Oct 21, 2018 at 12:17 AM Jason Hsu, Ruby on High Speed Rails < jhsu802...@gmail.com> wrote: > How can I get test coverage results to show more consistent

[Rails] Test coverage in Rails apps

2018-10-20 Thread Jason Hsu, Ruby on High Speed Rails
How can I get test coverage results to show more consistent results that make sense? I earlier decided against having SimpleCov and test coverage badges in my Rails apps. It seemed that no matter how I configured SimpleCov, there were some glaring flaws in its results. However, I have since

Re: [Rails] modal dialog box

2018-10-20 Thread Walter Lee Davis
Do you have multiple buttons on the page, each referring to a different product, and do you intend them to all go "through" a single modal? You're going to need to add some JavaScript to the mix, I imagine. Put a generic form in the modal itself, and then use data-attributes or a querystring to