Re: [Rails] Not able to run the server for any app

2018-10-23 Thread Rob Zolkos
Try running gem pristine --all On Tue, Oct 23, 2018 at 10:11 PM Piyush Chowhan wrote: > Rails 5.2.1 > > Ruby 2.5.1 > > are installed > > Not able to run server for any app > What am I missing? > rails s > > *Traceback* (most recent call last): > > 2: from /usr/local/bin/rails:23:in `' > > 1:

[Rails] Migrate from Shrine (or paperclip) to active storage

2018-10-23 Thread Colleen
I'm migrating from Shrine to Active Storage. It's very similar to migrating from paperclip. Active storage works, but the migration is not moving my existing data over properly. Background: 1. Modified the migration here: https://github.com/thoughtbot/paperclip/blob/master/MIGRATING.md to

Re: [Rails] modal dialog box

2018-10-23 Thread Joe Guerra
yes, that's what I ended up doing. Removed the modal, and used the built-in submit tag confirmation. It will have to do. On Tue, Oct 23, 2018 at 11:56 AM Walter Lee Davis wrote: > You could just make the regular button show a confirmation dialog in the > usual Rails way > > data: { confirm:

Re: [Rails] modal dialog box

2018-10-23 Thread Walter Lee Davis
You could just make the regular button show a confirmation dialog in the usual Rails way data: { confirm: "Are you sure you want to add #{@product.name} to your cart?" } Then there are any number of Bootstrap plug-ins that hijack a normal JS confirm dialog (which is what the above creates)

Re: [Rails] modal dialog box

2018-10-23 Thread Joe Guerra
[image: Capture.PNG] Ok, this is what I have so far. I've added the bootstrap modal and put the button right next to the actual button. So, I need to render this modal, and then on the modal boxes save changes (update the cart). oh, the other thing I couldn't figure out is how to get

Re: [Rails] modal dialog box

2018-10-23 Thread Joe Guerra
[image: Capture.PNG] Ok, this is what I have so far. I've added the bootstrap modal and put the button right next to the actual button. So, I need to render this modal, and then on the modal boxes save changes (update the cart). oh, the other thing I couldn't figure out is how to get the

[Rails] Not able to run the server for any app

2018-10-23 Thread Piyush Chowhan
Rails 5.2.1 Ruby 2.5.1 are installed Not able to run server for any app What am I missing? rails s *Traceback* (most recent call last): 2: from /usr/local/bin/rails:23:in `' 1: from /Users/apple/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'

Re: [Rails] Not able to host app on Heroku using sqlite3 gem

2018-10-23 Thread Piyush Chowhan
not able to run server What am I missing? rails s *Traceback* (most recent call last): 2: from /usr/local/bin/rails:23:in `' 1: from /Users/apple/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'

Re: [Rails] Not able to host app on Heroku using sqlite3 gem

2018-10-23 Thread Karthikeyan A K
Heroku supports postgres, so change the gem file in such a way that sqlite is used in development and gem "pg" is used in production. On Tue, Oct 23, 2018 at 5:22 PM Piyush Chowhan wrote: > Heroku Logs > > Running: rake assets:precompile > >rake aborted! > >Gem::LoadError: Error

[Rails] Not able to host app on Heroku using sqlite3 gem

2018-10-23 Thread Piyush Chowhan
Heroku Logs Running: rake assets:precompile rake aborted! Gem::LoadError: Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? sqlite3 is not part of the bundle. Add it to your Gemfile.

Re: [Rails] Re: Is it possible without user_name & password Action mailer configuration in rails ?

2018-10-23 Thread Prasanth Balan
Thank you Mike, it's working now On Tue, Oct 9, 2018 at 4:04 PM Mike Simkins wrote: > It is all fairly well explained in the rails guides however: > > If your mailer is on the same box as your web app use something like.. > > config.action_mailer.delivery_method = :sendmail >